1// Code generated by protoc-gen-gogo. DO NOT EDIT. 2// source: combos/both/one.proto 3 4package one 5 6import ( 7 bytes "bytes" 8 compress_gzip "compress/gzip" 9 encoding_binary "encoding/binary" 10 fmt "fmt" 11 _ "github.com/gogo/protobuf/gogoproto" 12 github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" 13 proto "github.com/gogo/protobuf/proto" 14 github_com_gogo_protobuf_protoc_gen_gogo_descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" 15 github_com_gogo_protobuf_test_casttype "github.com/gogo/protobuf/test/casttype" 16 github_com_gogo_protobuf_test_custom "github.com/gogo/protobuf/test/custom" 17 io "io" 18 io_ioutil "io/ioutil" 19 math "math" 20 math_bits "math/bits" 21 reflect "reflect" 22 strings "strings" 23) 24 25// Reference imports to suppress errors if they are not otherwise used. 26var _ = proto.Marshal 27var _ = fmt.Errorf 28var _ = math.Inf 29 30// This is a compile-time assertion to ensure that this generated file 31// is compatible with the proto package it is being compiled against. 32// A compilation error at this line likely means your copy of the 33// proto package needs to be updated. 34const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 35 36type Subby struct { 37 Sub *string `protobuf:"bytes,1,opt,name=sub" json:"sub,omitempty"` 38 XXX_NoUnkeyedLiteral struct{} `json:"-"` 39 XXX_unrecognized []byte `json:"-"` 40 XXX_sizecache int32 `json:"-"` 41} 42 43func (m *Subby) Reset() { *m = Subby{} } 44func (*Subby) ProtoMessage() {} 45func (*Subby) Descriptor() ([]byte, []int) { 46 return fileDescriptor_5ca5df6bbfd2f47d, []int{0} 47} 48func (m *Subby) XXX_Unmarshal(b []byte) error { 49 return m.Unmarshal(b) 50} 51func (m *Subby) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 if deterministic { 53 return xxx_messageInfo_Subby.Marshal(b, m, deterministic) 54 } else { 55 b = b[:cap(b)] 56 n, err := m.MarshalToSizedBuffer(b) 57 if err != nil { 58 return nil, err 59 } 60 return b[:n], nil 61 } 62} 63func (m *Subby) XXX_Merge(src proto.Message) { 64 xxx_messageInfo_Subby.Merge(m, src) 65} 66func (m *Subby) XXX_Size() int { 67 return m.Size() 68} 69func (m *Subby) XXX_DiscardUnknown() { 70 xxx_messageInfo_Subby.DiscardUnknown(m) 71} 72 73var xxx_messageInfo_Subby proto.InternalMessageInfo 74 75type AllTypesOneOf struct { 76 // Types that are valid to be assigned to TestOneof: 77 // *AllTypesOneOf_Field1 78 // *AllTypesOneOf_Field2 79 // *AllTypesOneOf_Field3 80 // *AllTypesOneOf_Field4 81 // *AllTypesOneOf_Field5 82 // *AllTypesOneOf_Field6 83 // *AllTypesOneOf_Field7 84 // *AllTypesOneOf_Field8 85 // *AllTypesOneOf_Field9 86 // *AllTypesOneOf_Field10 87 // *AllTypesOneOf_Field11 88 // *AllTypesOneOf_Field12 89 // *AllTypesOneOf_Field13 90 // *AllTypesOneOf_Field14 91 // *AllTypesOneOf_Field15 92 // *AllTypesOneOf_SubMessage 93 TestOneof isAllTypesOneOf_TestOneof `protobuf_oneof:"test_oneof"` 94 XXX_NoUnkeyedLiteral struct{} `json:"-"` 95 XXX_unrecognized []byte `json:"-"` 96 XXX_sizecache int32 `json:"-"` 97} 98 99func (m *AllTypesOneOf) Reset() { *m = AllTypesOneOf{} } 100func (*AllTypesOneOf) ProtoMessage() {} 101func (*AllTypesOneOf) Descriptor() ([]byte, []int) { 102 return fileDescriptor_5ca5df6bbfd2f47d, []int{1} 103} 104func (m *AllTypesOneOf) XXX_Unmarshal(b []byte) error { 105 return m.Unmarshal(b) 106} 107func (m *AllTypesOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 108 if deterministic { 109 return xxx_messageInfo_AllTypesOneOf.Marshal(b, m, deterministic) 110 } else { 111 b = b[:cap(b)] 112 n, err := m.MarshalToSizedBuffer(b) 113 if err != nil { 114 return nil, err 115 } 116 return b[:n], nil 117 } 118} 119func (m *AllTypesOneOf) XXX_Merge(src proto.Message) { 120 xxx_messageInfo_AllTypesOneOf.Merge(m, src) 121} 122func (m *AllTypesOneOf) XXX_Size() int { 123 return m.Size() 124} 125func (m *AllTypesOneOf) XXX_DiscardUnknown() { 126 xxx_messageInfo_AllTypesOneOf.DiscardUnknown(m) 127} 128 129var xxx_messageInfo_AllTypesOneOf proto.InternalMessageInfo 130 131type isAllTypesOneOf_TestOneof interface { 132 isAllTypesOneOf_TestOneof() 133 Equal(interface{}) bool 134 VerboseEqual(interface{}) error 135 MarshalTo([]byte) (int, error) 136 Size() int 137} 138 139type AllTypesOneOf_Field1 struct { 140 Field1 float64 `protobuf:"fixed64,1,opt,name=Field1,oneof"` 141} 142type AllTypesOneOf_Field2 struct { 143 Field2 float32 `protobuf:"fixed32,2,opt,name=Field2,oneof"` 144} 145type AllTypesOneOf_Field3 struct { 146 Field3 int32 `protobuf:"varint,3,opt,name=Field3,oneof"` 147} 148type AllTypesOneOf_Field4 struct { 149 Field4 int64 `protobuf:"varint,4,opt,name=Field4,oneof"` 150} 151type AllTypesOneOf_Field5 struct { 152 Field5 uint32 `protobuf:"varint,5,opt,name=Field5,oneof"` 153} 154type AllTypesOneOf_Field6 struct { 155 Field6 uint64 `protobuf:"varint,6,opt,name=Field6,oneof"` 156} 157type AllTypesOneOf_Field7 struct { 158 Field7 int32 `protobuf:"zigzag32,7,opt,name=Field7,oneof"` 159} 160type AllTypesOneOf_Field8 struct { 161 Field8 int64 `protobuf:"zigzag64,8,opt,name=Field8,oneof"` 162} 163type AllTypesOneOf_Field9 struct { 164 Field9 uint32 `protobuf:"fixed32,9,opt,name=Field9,oneof"` 165} 166type AllTypesOneOf_Field10 struct { 167 Field10 int32 `protobuf:"fixed32,10,opt,name=Field10,oneof"` 168} 169type AllTypesOneOf_Field11 struct { 170 Field11 uint64 `protobuf:"fixed64,11,opt,name=Field11,oneof"` 171} 172type AllTypesOneOf_Field12 struct { 173 Field12 int64 `protobuf:"fixed64,12,opt,name=Field12,oneof"` 174} 175type AllTypesOneOf_Field13 struct { 176 Field13 bool `protobuf:"varint,13,opt,name=Field13,oneof"` 177} 178type AllTypesOneOf_Field14 struct { 179 Field14 string `protobuf:"bytes,14,opt,name=Field14,oneof"` 180} 181type AllTypesOneOf_Field15 struct { 182 Field15 []byte `protobuf:"bytes,15,opt,name=Field15,oneof"` 183} 184type AllTypesOneOf_SubMessage struct { 185 SubMessage *Subby `protobuf:"bytes,16,opt,name=sub_message,json=subMessage,oneof"` 186} 187 188func (*AllTypesOneOf_Field1) isAllTypesOneOf_TestOneof() {} 189func (*AllTypesOneOf_Field2) isAllTypesOneOf_TestOneof() {} 190func (*AllTypesOneOf_Field3) isAllTypesOneOf_TestOneof() {} 191func (*AllTypesOneOf_Field4) isAllTypesOneOf_TestOneof() {} 192func (*AllTypesOneOf_Field5) isAllTypesOneOf_TestOneof() {} 193func (*AllTypesOneOf_Field6) isAllTypesOneOf_TestOneof() {} 194func (*AllTypesOneOf_Field7) isAllTypesOneOf_TestOneof() {} 195func (*AllTypesOneOf_Field8) isAllTypesOneOf_TestOneof() {} 196func (*AllTypesOneOf_Field9) isAllTypesOneOf_TestOneof() {} 197func (*AllTypesOneOf_Field10) isAllTypesOneOf_TestOneof() {} 198func (*AllTypesOneOf_Field11) isAllTypesOneOf_TestOneof() {} 199func (*AllTypesOneOf_Field12) isAllTypesOneOf_TestOneof() {} 200func (*AllTypesOneOf_Field13) isAllTypesOneOf_TestOneof() {} 201func (*AllTypesOneOf_Field14) isAllTypesOneOf_TestOneof() {} 202func (*AllTypesOneOf_Field15) isAllTypesOneOf_TestOneof() {} 203func (*AllTypesOneOf_SubMessage) isAllTypesOneOf_TestOneof() {} 204 205func (m *AllTypesOneOf) GetTestOneof() isAllTypesOneOf_TestOneof { 206 if m != nil { 207 return m.TestOneof 208 } 209 return nil 210} 211 212func (m *AllTypesOneOf) GetField1() float64 { 213 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field1); ok { 214 return x.Field1 215 } 216 return 0 217} 218 219func (m *AllTypesOneOf) GetField2() float32 { 220 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field2); ok { 221 return x.Field2 222 } 223 return 0 224} 225 226func (m *AllTypesOneOf) GetField3() int32 { 227 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field3); ok { 228 return x.Field3 229 } 230 return 0 231} 232 233func (m *AllTypesOneOf) GetField4() int64 { 234 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field4); ok { 235 return x.Field4 236 } 237 return 0 238} 239 240func (m *AllTypesOneOf) GetField5() uint32 { 241 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field5); ok { 242 return x.Field5 243 } 244 return 0 245} 246 247func (m *AllTypesOneOf) GetField6() uint64 { 248 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field6); ok { 249 return x.Field6 250 } 251 return 0 252} 253 254func (m *AllTypesOneOf) GetField7() int32 { 255 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field7); ok { 256 return x.Field7 257 } 258 return 0 259} 260 261func (m *AllTypesOneOf) GetField8() int64 { 262 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field8); ok { 263 return x.Field8 264 } 265 return 0 266} 267 268func (m *AllTypesOneOf) GetField9() uint32 { 269 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field9); ok { 270 return x.Field9 271 } 272 return 0 273} 274 275func (m *AllTypesOneOf) GetField10() int32 { 276 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field10); ok { 277 return x.Field10 278 } 279 return 0 280} 281 282func (m *AllTypesOneOf) GetField11() uint64 { 283 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field11); ok { 284 return x.Field11 285 } 286 return 0 287} 288 289func (m *AllTypesOneOf) GetField12() int64 { 290 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field12); ok { 291 return x.Field12 292 } 293 return 0 294} 295 296func (m *AllTypesOneOf) GetField13() bool { 297 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field13); ok { 298 return x.Field13 299 } 300 return false 301} 302 303func (m *AllTypesOneOf) GetField14() string { 304 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field14); ok { 305 return x.Field14 306 } 307 return "" 308} 309 310func (m *AllTypesOneOf) GetField15() []byte { 311 if x, ok := m.GetTestOneof().(*AllTypesOneOf_Field15); ok { 312 return x.Field15 313 } 314 return nil 315} 316 317func (m *AllTypesOneOf) GetSubMessage() *Subby { 318 if x, ok := m.GetTestOneof().(*AllTypesOneOf_SubMessage); ok { 319 return x.SubMessage 320 } 321 return nil 322} 323 324// XXX_OneofFuncs is for the internal use of the proto package. 325func (*AllTypesOneOf) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 326 return _AllTypesOneOf_OneofMarshaler, _AllTypesOneOf_OneofUnmarshaler, _AllTypesOneOf_OneofSizer, []interface{}{ 327 (*AllTypesOneOf_Field1)(nil), 328 (*AllTypesOneOf_Field2)(nil), 329 (*AllTypesOneOf_Field3)(nil), 330 (*AllTypesOneOf_Field4)(nil), 331 (*AllTypesOneOf_Field5)(nil), 332 (*AllTypesOneOf_Field6)(nil), 333 (*AllTypesOneOf_Field7)(nil), 334 (*AllTypesOneOf_Field8)(nil), 335 (*AllTypesOneOf_Field9)(nil), 336 (*AllTypesOneOf_Field10)(nil), 337 (*AllTypesOneOf_Field11)(nil), 338 (*AllTypesOneOf_Field12)(nil), 339 (*AllTypesOneOf_Field13)(nil), 340 (*AllTypesOneOf_Field14)(nil), 341 (*AllTypesOneOf_Field15)(nil), 342 (*AllTypesOneOf_SubMessage)(nil), 343 } 344} 345 346func _AllTypesOneOf_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 347 m := msg.(*AllTypesOneOf) 348 // test_oneof 349 switch x := m.TestOneof.(type) { 350 case *AllTypesOneOf_Field1: 351 _ = b.EncodeVarint(1<<3 | proto.WireFixed64) 352 _ = b.EncodeFixed64(math.Float64bits(x.Field1)) 353 case *AllTypesOneOf_Field2: 354 _ = b.EncodeVarint(2<<3 | proto.WireFixed32) 355 _ = b.EncodeFixed32(uint64(math.Float32bits(x.Field2))) 356 case *AllTypesOneOf_Field3: 357 _ = b.EncodeVarint(3<<3 | proto.WireVarint) 358 _ = b.EncodeVarint(uint64(x.Field3)) 359 case *AllTypesOneOf_Field4: 360 _ = b.EncodeVarint(4<<3 | proto.WireVarint) 361 _ = b.EncodeVarint(uint64(x.Field4)) 362 case *AllTypesOneOf_Field5: 363 _ = b.EncodeVarint(5<<3 | proto.WireVarint) 364 _ = b.EncodeVarint(uint64(x.Field5)) 365 case *AllTypesOneOf_Field6: 366 _ = b.EncodeVarint(6<<3 | proto.WireVarint) 367 _ = b.EncodeVarint(uint64(x.Field6)) 368 case *AllTypesOneOf_Field7: 369 _ = b.EncodeVarint(7<<3 | proto.WireVarint) 370 _ = b.EncodeZigzag32(uint64(x.Field7)) 371 case *AllTypesOneOf_Field8: 372 _ = b.EncodeVarint(8<<3 | proto.WireVarint) 373 _ = b.EncodeZigzag64(uint64(x.Field8)) 374 case *AllTypesOneOf_Field9: 375 _ = b.EncodeVarint(9<<3 | proto.WireFixed32) 376 _ = b.EncodeFixed32(uint64(x.Field9)) 377 case *AllTypesOneOf_Field10: 378 _ = b.EncodeVarint(10<<3 | proto.WireFixed32) 379 _ = b.EncodeFixed32(uint64(x.Field10)) 380 case *AllTypesOneOf_Field11: 381 _ = b.EncodeVarint(11<<3 | proto.WireFixed64) 382 _ = b.EncodeFixed64(uint64(x.Field11)) 383 case *AllTypesOneOf_Field12: 384 _ = b.EncodeVarint(12<<3 | proto.WireFixed64) 385 _ = b.EncodeFixed64(uint64(x.Field12)) 386 case *AllTypesOneOf_Field13: 387 t := uint64(0) 388 if x.Field13 { 389 t = 1 390 } 391 _ = b.EncodeVarint(13<<3 | proto.WireVarint) 392 _ = b.EncodeVarint(t) 393 case *AllTypesOneOf_Field14: 394 _ = b.EncodeVarint(14<<3 | proto.WireBytes) 395 _ = b.EncodeStringBytes(x.Field14) 396 case *AllTypesOneOf_Field15: 397 _ = b.EncodeVarint(15<<3 | proto.WireBytes) 398 _ = b.EncodeRawBytes(x.Field15) 399 case *AllTypesOneOf_SubMessage: 400 _ = b.EncodeVarint(16<<3 | proto.WireBytes) 401 if err := b.EncodeMessage(x.SubMessage); err != nil { 402 return err 403 } 404 case nil: 405 default: 406 return fmt.Errorf("AllTypesOneOf.TestOneof has unexpected type %T", x) 407 } 408 return nil 409} 410 411func _AllTypesOneOf_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 412 m := msg.(*AllTypesOneOf) 413 switch tag { 414 case 1: // test_oneof.Field1 415 if wire != proto.WireFixed64 { 416 return true, proto.ErrInternalBadWireType 417 } 418 x, err := b.DecodeFixed64() 419 m.TestOneof = &AllTypesOneOf_Field1{math.Float64frombits(x)} 420 return true, err 421 case 2: // test_oneof.Field2 422 if wire != proto.WireFixed32 { 423 return true, proto.ErrInternalBadWireType 424 } 425 x, err := b.DecodeFixed32() 426 m.TestOneof = &AllTypesOneOf_Field2{math.Float32frombits(uint32(x))} 427 return true, err 428 case 3: // test_oneof.Field3 429 if wire != proto.WireVarint { 430 return true, proto.ErrInternalBadWireType 431 } 432 x, err := b.DecodeVarint() 433 m.TestOneof = &AllTypesOneOf_Field3{int32(x)} 434 return true, err 435 case 4: // test_oneof.Field4 436 if wire != proto.WireVarint { 437 return true, proto.ErrInternalBadWireType 438 } 439 x, err := b.DecodeVarint() 440 m.TestOneof = &AllTypesOneOf_Field4{int64(x)} 441 return true, err 442 case 5: // test_oneof.Field5 443 if wire != proto.WireVarint { 444 return true, proto.ErrInternalBadWireType 445 } 446 x, err := b.DecodeVarint() 447 m.TestOneof = &AllTypesOneOf_Field5{uint32(x)} 448 return true, err 449 case 6: // test_oneof.Field6 450 if wire != proto.WireVarint { 451 return true, proto.ErrInternalBadWireType 452 } 453 x, err := b.DecodeVarint() 454 m.TestOneof = &AllTypesOneOf_Field6{x} 455 return true, err 456 case 7: // test_oneof.Field7 457 if wire != proto.WireVarint { 458 return true, proto.ErrInternalBadWireType 459 } 460 x, err := b.DecodeZigzag32() 461 m.TestOneof = &AllTypesOneOf_Field7{int32(x)} 462 return true, err 463 case 8: // test_oneof.Field8 464 if wire != proto.WireVarint { 465 return true, proto.ErrInternalBadWireType 466 } 467 x, err := b.DecodeZigzag64() 468 m.TestOneof = &AllTypesOneOf_Field8{int64(x)} 469 return true, err 470 case 9: // test_oneof.Field9 471 if wire != proto.WireFixed32 { 472 return true, proto.ErrInternalBadWireType 473 } 474 x, err := b.DecodeFixed32() 475 m.TestOneof = &AllTypesOneOf_Field9{uint32(x)} 476 return true, err 477 case 10: // test_oneof.Field10 478 if wire != proto.WireFixed32 { 479 return true, proto.ErrInternalBadWireType 480 } 481 x, err := b.DecodeFixed32() 482 m.TestOneof = &AllTypesOneOf_Field10{int32(x)} 483 return true, err 484 case 11: // test_oneof.Field11 485 if wire != proto.WireFixed64 { 486 return true, proto.ErrInternalBadWireType 487 } 488 x, err := b.DecodeFixed64() 489 m.TestOneof = &AllTypesOneOf_Field11{x} 490 return true, err 491 case 12: // test_oneof.Field12 492 if wire != proto.WireFixed64 { 493 return true, proto.ErrInternalBadWireType 494 } 495 x, err := b.DecodeFixed64() 496 m.TestOneof = &AllTypesOneOf_Field12{int64(x)} 497 return true, err 498 case 13: // test_oneof.Field13 499 if wire != proto.WireVarint { 500 return true, proto.ErrInternalBadWireType 501 } 502 x, err := b.DecodeVarint() 503 m.TestOneof = &AllTypesOneOf_Field13{x != 0} 504 return true, err 505 case 14: // test_oneof.Field14 506 if wire != proto.WireBytes { 507 return true, proto.ErrInternalBadWireType 508 } 509 x, err := b.DecodeStringBytes() 510 m.TestOneof = &AllTypesOneOf_Field14{x} 511 return true, err 512 case 15: // test_oneof.Field15 513 if wire != proto.WireBytes { 514 return true, proto.ErrInternalBadWireType 515 } 516 x, err := b.DecodeRawBytes(true) 517 m.TestOneof = &AllTypesOneOf_Field15{x} 518 return true, err 519 case 16: // test_oneof.sub_message 520 if wire != proto.WireBytes { 521 return true, proto.ErrInternalBadWireType 522 } 523 msg := new(Subby) 524 err := b.DecodeMessage(msg) 525 m.TestOneof = &AllTypesOneOf_SubMessage{msg} 526 return true, err 527 default: 528 return false, nil 529 } 530} 531 532func _AllTypesOneOf_OneofSizer(msg proto.Message) (n int) { 533 m := msg.(*AllTypesOneOf) 534 // test_oneof 535 switch x := m.TestOneof.(type) { 536 case *AllTypesOneOf_Field1: 537 n += 1 // tag and wire 538 n += 8 539 case *AllTypesOneOf_Field2: 540 n += 1 // tag and wire 541 n += 4 542 case *AllTypesOneOf_Field3: 543 n += 1 // tag and wire 544 n += proto.SizeVarint(uint64(x.Field3)) 545 case *AllTypesOneOf_Field4: 546 n += 1 // tag and wire 547 n += proto.SizeVarint(uint64(x.Field4)) 548 case *AllTypesOneOf_Field5: 549 n += 1 // tag and wire 550 n += proto.SizeVarint(uint64(x.Field5)) 551 case *AllTypesOneOf_Field6: 552 n += 1 // tag and wire 553 n += proto.SizeVarint(uint64(x.Field6)) 554 case *AllTypesOneOf_Field7: 555 n += 1 // tag and wire 556 n += proto.SizeVarint(uint64((uint32(x.Field7) << 1) ^ uint32((int32(x.Field7) >> 31)))) 557 case *AllTypesOneOf_Field8: 558 n += 1 // tag and wire 559 n += proto.SizeVarint(uint64(uint64(x.Field8<<1) ^ uint64((int64(x.Field8) >> 63)))) 560 case *AllTypesOneOf_Field9: 561 n += 1 // tag and wire 562 n += 4 563 case *AllTypesOneOf_Field10: 564 n += 1 // tag and wire 565 n += 4 566 case *AllTypesOneOf_Field11: 567 n += 1 // tag and wire 568 n += 8 569 case *AllTypesOneOf_Field12: 570 n += 1 // tag and wire 571 n += 8 572 case *AllTypesOneOf_Field13: 573 n += 1 // tag and wire 574 n += 1 575 case *AllTypesOneOf_Field14: 576 n += 1 // tag and wire 577 n += proto.SizeVarint(uint64(len(x.Field14))) 578 n += len(x.Field14) 579 case *AllTypesOneOf_Field15: 580 n += 1 // tag and wire 581 n += proto.SizeVarint(uint64(len(x.Field15))) 582 n += len(x.Field15) 583 case *AllTypesOneOf_SubMessage: 584 s := proto.Size(x.SubMessage) 585 n += 2 // tag and wire 586 n += proto.SizeVarint(uint64(s)) 587 n += s 588 case nil: 589 default: 590 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 591 } 592 return n 593} 594 595type TwoOneofs struct { 596 // Types that are valid to be assigned to One: 597 // *TwoOneofs_Field1 598 // *TwoOneofs_Field2 599 // *TwoOneofs_Field3 600 One isTwoOneofs_One `protobuf_oneof:"one"` 601 // Types that are valid to be assigned to Two: 602 // *TwoOneofs_Field34 603 // *TwoOneofs_Field35 604 // *TwoOneofs_SubMessage2 605 Two isTwoOneofs_Two `protobuf_oneof:"two"` 606 XXX_NoUnkeyedLiteral struct{} `json:"-"` 607 XXX_unrecognized []byte `json:"-"` 608 XXX_sizecache int32 `json:"-"` 609} 610 611func (m *TwoOneofs) Reset() { *m = TwoOneofs{} } 612func (*TwoOneofs) ProtoMessage() {} 613func (*TwoOneofs) Descriptor() ([]byte, []int) { 614 return fileDescriptor_5ca5df6bbfd2f47d, []int{2} 615} 616func (m *TwoOneofs) XXX_Unmarshal(b []byte) error { 617 return m.Unmarshal(b) 618} 619func (m *TwoOneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 620 if deterministic { 621 return xxx_messageInfo_TwoOneofs.Marshal(b, m, deterministic) 622 } else { 623 b = b[:cap(b)] 624 n, err := m.MarshalToSizedBuffer(b) 625 if err != nil { 626 return nil, err 627 } 628 return b[:n], nil 629 } 630} 631func (m *TwoOneofs) XXX_Merge(src proto.Message) { 632 xxx_messageInfo_TwoOneofs.Merge(m, src) 633} 634func (m *TwoOneofs) XXX_Size() int { 635 return m.Size() 636} 637func (m *TwoOneofs) XXX_DiscardUnknown() { 638 xxx_messageInfo_TwoOneofs.DiscardUnknown(m) 639} 640 641var xxx_messageInfo_TwoOneofs proto.InternalMessageInfo 642 643type isTwoOneofs_One interface { 644 isTwoOneofs_One() 645 Equal(interface{}) bool 646 VerboseEqual(interface{}) error 647 MarshalTo([]byte) (int, error) 648 Size() int 649} 650type isTwoOneofs_Two interface { 651 isTwoOneofs_Two() 652 Equal(interface{}) bool 653 VerboseEqual(interface{}) error 654 MarshalTo([]byte) (int, error) 655 Size() int 656} 657 658type TwoOneofs_Field1 struct { 659 Field1 float64 `protobuf:"fixed64,1,opt,name=Field1,oneof"` 660} 661type TwoOneofs_Field2 struct { 662 Field2 float32 `protobuf:"fixed32,2,opt,name=Field2,oneof"` 663} 664type TwoOneofs_Field3 struct { 665 Field3 int32 `protobuf:"varint,3,opt,name=Field3,oneof"` 666} 667type TwoOneofs_Field34 struct { 668 Field34 string `protobuf:"bytes,34,opt,name=Field34,oneof"` 669} 670type TwoOneofs_Field35 struct { 671 Field35 []byte `protobuf:"bytes,35,opt,name=Field35,oneof"` 672} 673type TwoOneofs_SubMessage2 struct { 674 SubMessage2 *Subby `protobuf:"bytes,36,opt,name=sub_message2,json=subMessage2,oneof"` 675} 676 677func (*TwoOneofs_Field1) isTwoOneofs_One() {} 678func (*TwoOneofs_Field2) isTwoOneofs_One() {} 679func (*TwoOneofs_Field3) isTwoOneofs_One() {} 680func (*TwoOneofs_Field34) isTwoOneofs_Two() {} 681func (*TwoOneofs_Field35) isTwoOneofs_Two() {} 682func (*TwoOneofs_SubMessage2) isTwoOneofs_Two() {} 683 684func (m *TwoOneofs) GetOne() isTwoOneofs_One { 685 if m != nil { 686 return m.One 687 } 688 return nil 689} 690func (m *TwoOneofs) GetTwo() isTwoOneofs_Two { 691 if m != nil { 692 return m.Two 693 } 694 return nil 695} 696 697func (m *TwoOneofs) GetField1() float64 { 698 if x, ok := m.GetOne().(*TwoOneofs_Field1); ok { 699 return x.Field1 700 } 701 return 0 702} 703 704func (m *TwoOneofs) GetField2() float32 { 705 if x, ok := m.GetOne().(*TwoOneofs_Field2); ok { 706 return x.Field2 707 } 708 return 0 709} 710 711func (m *TwoOneofs) GetField3() int32 { 712 if x, ok := m.GetOne().(*TwoOneofs_Field3); ok { 713 return x.Field3 714 } 715 return 0 716} 717 718func (m *TwoOneofs) GetField34() string { 719 if x, ok := m.GetTwo().(*TwoOneofs_Field34); ok { 720 return x.Field34 721 } 722 return "" 723} 724 725func (m *TwoOneofs) GetField35() []byte { 726 if x, ok := m.GetTwo().(*TwoOneofs_Field35); ok { 727 return x.Field35 728 } 729 return nil 730} 731 732func (m *TwoOneofs) GetSubMessage2() *Subby { 733 if x, ok := m.GetTwo().(*TwoOneofs_SubMessage2); ok { 734 return x.SubMessage2 735 } 736 return nil 737} 738 739// XXX_OneofFuncs is for the internal use of the proto package. 740func (*TwoOneofs) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 741 return _TwoOneofs_OneofMarshaler, _TwoOneofs_OneofUnmarshaler, _TwoOneofs_OneofSizer, []interface{}{ 742 (*TwoOneofs_Field1)(nil), 743 (*TwoOneofs_Field2)(nil), 744 (*TwoOneofs_Field3)(nil), 745 (*TwoOneofs_Field34)(nil), 746 (*TwoOneofs_Field35)(nil), 747 (*TwoOneofs_SubMessage2)(nil), 748 } 749} 750 751func _TwoOneofs_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 752 m := msg.(*TwoOneofs) 753 // one 754 switch x := m.One.(type) { 755 case *TwoOneofs_Field1: 756 _ = b.EncodeVarint(1<<3 | proto.WireFixed64) 757 _ = b.EncodeFixed64(math.Float64bits(x.Field1)) 758 case *TwoOneofs_Field2: 759 _ = b.EncodeVarint(2<<3 | proto.WireFixed32) 760 _ = b.EncodeFixed32(uint64(math.Float32bits(x.Field2))) 761 case *TwoOneofs_Field3: 762 _ = b.EncodeVarint(3<<3 | proto.WireVarint) 763 _ = b.EncodeVarint(uint64(x.Field3)) 764 case nil: 765 default: 766 return fmt.Errorf("TwoOneofs.One has unexpected type %T", x) 767 } 768 // two 769 switch x := m.Two.(type) { 770 case *TwoOneofs_Field34: 771 _ = b.EncodeVarint(34<<3 | proto.WireBytes) 772 _ = b.EncodeStringBytes(x.Field34) 773 case *TwoOneofs_Field35: 774 _ = b.EncodeVarint(35<<3 | proto.WireBytes) 775 _ = b.EncodeRawBytes(x.Field35) 776 case *TwoOneofs_SubMessage2: 777 _ = b.EncodeVarint(36<<3 | proto.WireBytes) 778 if err := b.EncodeMessage(x.SubMessage2); err != nil { 779 return err 780 } 781 case nil: 782 default: 783 return fmt.Errorf("TwoOneofs.Two has unexpected type %T", x) 784 } 785 return nil 786} 787 788func _TwoOneofs_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 789 m := msg.(*TwoOneofs) 790 switch tag { 791 case 1: // one.Field1 792 if wire != proto.WireFixed64 { 793 return true, proto.ErrInternalBadWireType 794 } 795 x, err := b.DecodeFixed64() 796 m.One = &TwoOneofs_Field1{math.Float64frombits(x)} 797 return true, err 798 case 2: // one.Field2 799 if wire != proto.WireFixed32 { 800 return true, proto.ErrInternalBadWireType 801 } 802 x, err := b.DecodeFixed32() 803 m.One = &TwoOneofs_Field2{math.Float32frombits(uint32(x))} 804 return true, err 805 case 3: // one.Field3 806 if wire != proto.WireVarint { 807 return true, proto.ErrInternalBadWireType 808 } 809 x, err := b.DecodeVarint() 810 m.One = &TwoOneofs_Field3{int32(x)} 811 return true, err 812 case 34: // two.Field34 813 if wire != proto.WireBytes { 814 return true, proto.ErrInternalBadWireType 815 } 816 x, err := b.DecodeStringBytes() 817 m.Two = &TwoOneofs_Field34{x} 818 return true, err 819 case 35: // two.Field35 820 if wire != proto.WireBytes { 821 return true, proto.ErrInternalBadWireType 822 } 823 x, err := b.DecodeRawBytes(true) 824 m.Two = &TwoOneofs_Field35{x} 825 return true, err 826 case 36: // two.sub_message2 827 if wire != proto.WireBytes { 828 return true, proto.ErrInternalBadWireType 829 } 830 msg := new(Subby) 831 err := b.DecodeMessage(msg) 832 m.Two = &TwoOneofs_SubMessage2{msg} 833 return true, err 834 default: 835 return false, nil 836 } 837} 838 839func _TwoOneofs_OneofSizer(msg proto.Message) (n int) { 840 m := msg.(*TwoOneofs) 841 // one 842 switch x := m.One.(type) { 843 case *TwoOneofs_Field1: 844 n += 1 // tag and wire 845 n += 8 846 case *TwoOneofs_Field2: 847 n += 1 // tag and wire 848 n += 4 849 case *TwoOneofs_Field3: 850 n += 1 // tag and wire 851 n += proto.SizeVarint(uint64(x.Field3)) 852 case nil: 853 default: 854 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 855 } 856 // two 857 switch x := m.Two.(type) { 858 case *TwoOneofs_Field34: 859 n += 2 // tag and wire 860 n += proto.SizeVarint(uint64(len(x.Field34))) 861 n += len(x.Field34) 862 case *TwoOneofs_Field35: 863 n += 2 // tag and wire 864 n += proto.SizeVarint(uint64(len(x.Field35))) 865 n += len(x.Field35) 866 case *TwoOneofs_SubMessage2: 867 s := proto.Size(x.SubMessage2) 868 n += 2 // tag and wire 869 n += proto.SizeVarint(uint64(s)) 870 n += s 871 case nil: 872 default: 873 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 874 } 875 return n 876} 877 878type CustomOneof struct { 879 // Types that are valid to be assigned to Custom: 880 // *CustomOneof_Stringy 881 // *CustomOneof_CustomType 882 // *CustomOneof_CastType 883 // *CustomOneof_MyCustomName 884 Custom isCustomOneof_Custom `protobuf_oneof:"custom"` 885 XXX_NoUnkeyedLiteral struct{} `json:"-"` 886 XXX_unrecognized []byte `json:"-"` 887 XXX_sizecache int32 `json:"-"` 888} 889 890func (m *CustomOneof) Reset() { *m = CustomOneof{} } 891func (*CustomOneof) ProtoMessage() {} 892func (*CustomOneof) Descriptor() ([]byte, []int) { 893 return fileDescriptor_5ca5df6bbfd2f47d, []int{3} 894} 895func (m *CustomOneof) XXX_Unmarshal(b []byte) error { 896 return m.Unmarshal(b) 897} 898func (m *CustomOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 899 if deterministic { 900 return xxx_messageInfo_CustomOneof.Marshal(b, m, deterministic) 901 } else { 902 b = b[:cap(b)] 903 n, err := m.MarshalToSizedBuffer(b) 904 if err != nil { 905 return nil, err 906 } 907 return b[:n], nil 908 } 909} 910func (m *CustomOneof) XXX_Merge(src proto.Message) { 911 xxx_messageInfo_CustomOneof.Merge(m, src) 912} 913func (m *CustomOneof) XXX_Size() int { 914 return m.Size() 915} 916func (m *CustomOneof) XXX_DiscardUnknown() { 917 xxx_messageInfo_CustomOneof.DiscardUnknown(m) 918} 919 920var xxx_messageInfo_CustomOneof proto.InternalMessageInfo 921 922type isCustomOneof_Custom interface { 923 isCustomOneof_Custom() 924 Equal(interface{}) bool 925 VerboseEqual(interface{}) error 926 MarshalTo([]byte) (int, error) 927 Size() int 928} 929 930type CustomOneof_Stringy struct { 931 Stringy string `protobuf:"bytes,34,opt,name=Stringy,oneof"` 932} 933type CustomOneof_CustomType struct { 934 CustomType github_com_gogo_protobuf_test_custom.Uint128 `protobuf:"bytes,35,opt,name=CustomType,oneof,customtype=github.com/gogo/protobuf/test/custom.Uint128"` 935} 936type CustomOneof_CastType struct { 937 CastType github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,36,opt,name=CastType,oneof,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type"` 938} 939type CustomOneof_MyCustomName struct { 940 MyCustomName int64 `protobuf:"varint,37,opt,name=CustomName,oneof"` 941} 942 943func (*CustomOneof_Stringy) isCustomOneof_Custom() {} 944func (*CustomOneof_CustomType) isCustomOneof_Custom() {} 945func (*CustomOneof_CastType) isCustomOneof_Custom() {} 946func (*CustomOneof_MyCustomName) isCustomOneof_Custom() {} 947 948func (m *CustomOneof) GetCustom() isCustomOneof_Custom { 949 if m != nil { 950 return m.Custom 951 } 952 return nil 953} 954 955func (m *CustomOneof) GetStringy() string { 956 if x, ok := m.GetCustom().(*CustomOneof_Stringy); ok { 957 return x.Stringy 958 } 959 return "" 960} 961 962func (m *CustomOneof) GetCastType() github_com_gogo_protobuf_test_casttype.MyUint64Type { 963 if x, ok := m.GetCustom().(*CustomOneof_CastType); ok { 964 return x.CastType 965 } 966 return 0 967} 968 969func (m *CustomOneof) GetMyCustomName() int64 { 970 if x, ok := m.GetCustom().(*CustomOneof_MyCustomName); ok { 971 return x.MyCustomName 972 } 973 return 0 974} 975 976// XXX_OneofFuncs is for the internal use of the proto package. 977func (*CustomOneof) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 978 return _CustomOneof_OneofMarshaler, _CustomOneof_OneofUnmarshaler, _CustomOneof_OneofSizer, []interface{}{ 979 (*CustomOneof_Stringy)(nil), 980 (*CustomOneof_CustomType)(nil), 981 (*CustomOneof_CastType)(nil), 982 (*CustomOneof_MyCustomName)(nil), 983 } 984} 985 986func _CustomOneof_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 987 m := msg.(*CustomOneof) 988 // custom 989 switch x := m.Custom.(type) { 990 case *CustomOneof_Stringy: 991 _ = b.EncodeVarint(34<<3 | proto.WireBytes) 992 _ = b.EncodeStringBytes(x.Stringy) 993 case *CustomOneof_CustomType: 994 _ = b.EncodeVarint(35<<3 | proto.WireBytes) 995 dAtA, err := x.CustomType.Marshal() 996 if err != nil { 997 return err 998 } 999 _ = b.EncodeRawBytes(dAtA) 1000 case *CustomOneof_CastType: 1001 _ = b.EncodeVarint(36<<3 | proto.WireVarint) 1002 _ = b.EncodeVarint(uint64(x.CastType)) 1003 case *CustomOneof_MyCustomName: 1004 _ = b.EncodeVarint(37<<3 | proto.WireVarint) 1005 _ = b.EncodeVarint(uint64(x.MyCustomName)) 1006 case nil: 1007 default: 1008 return fmt.Errorf("CustomOneof.Custom has unexpected type %T", x) 1009 } 1010 return nil 1011} 1012 1013func _CustomOneof_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 1014 m := msg.(*CustomOneof) 1015 switch tag { 1016 case 34: // custom.Stringy 1017 if wire != proto.WireBytes { 1018 return true, proto.ErrInternalBadWireType 1019 } 1020 x, err := b.DecodeStringBytes() 1021 m.Custom = &CustomOneof_Stringy{x} 1022 return true, err 1023 case 35: // custom.CustomType 1024 if wire != proto.WireBytes { 1025 return true, proto.ErrInternalBadWireType 1026 } 1027 x, err := b.DecodeRawBytes(true) 1028 if err != nil { 1029 return true, err 1030 } 1031 var cc github_com_gogo_protobuf_test_custom.Uint128 1032 c := &cc 1033 err = c.Unmarshal(x) 1034 m.Custom = &CustomOneof_CustomType{*c} 1035 return true, err 1036 case 36: // custom.CastType 1037 if wire != proto.WireVarint { 1038 return true, proto.ErrInternalBadWireType 1039 } 1040 x, err := b.DecodeVarint() 1041 m.Custom = &CustomOneof_CastType{github_com_gogo_protobuf_test_casttype.MyUint64Type(x)} 1042 return true, err 1043 case 37: // custom.CustomName 1044 if wire != proto.WireVarint { 1045 return true, proto.ErrInternalBadWireType 1046 } 1047 x, err := b.DecodeVarint() 1048 m.Custom = &CustomOneof_MyCustomName{int64(x)} 1049 return true, err 1050 default: 1051 return false, nil 1052 } 1053} 1054 1055func _CustomOneof_OneofSizer(msg proto.Message) (n int) { 1056 m := msg.(*CustomOneof) 1057 // custom 1058 switch x := m.Custom.(type) { 1059 case *CustomOneof_Stringy: 1060 n += 2 // tag and wire 1061 n += proto.SizeVarint(uint64(len(x.Stringy))) 1062 n += len(x.Stringy) 1063 case *CustomOneof_CustomType: 1064 n += 2 // tag and wire 1065 n += proto.SizeVarint(uint64(x.CustomType.Size())) 1066 n += x.CustomType.Size() 1067 case *CustomOneof_CastType: 1068 n += 2 // tag and wire 1069 n += proto.SizeVarint(uint64(x.CastType)) 1070 case *CustomOneof_MyCustomName: 1071 n += 2 // tag and wire 1072 n += proto.SizeVarint(uint64(x.MyCustomName)) 1073 case nil: 1074 default: 1075 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 1076 } 1077 return n 1078} 1079 1080func init() { 1081 proto.RegisterType((*Subby)(nil), "one.Subby") 1082 proto.RegisterType((*AllTypesOneOf)(nil), "one.AllTypesOneOf") 1083 proto.RegisterType((*TwoOneofs)(nil), "one.TwoOneofs") 1084 proto.RegisterType((*CustomOneof)(nil), "one.CustomOneof") 1085} 1086 1087func init() { proto.RegisterFile("combos/both/one.proto", fileDescriptor_5ca5df6bbfd2f47d) } 1088 1089var fileDescriptor_5ca5df6bbfd2f47d = []byte{ 1090 // 596 bytes of a gzipped FileDescriptorProto 1091 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0xd3, 0x3f, 0x4f, 0xdb, 0x40, 1092 0x14, 0x00, 0x70, 0x3f, 0x42, 0x42, 0xb8, 0x84, 0x92, 0x5a, 0xaa, 0x74, 0x65, 0x38, 0x4e, 0x69, 1093 0x2b, 0xdd, 0x50, 0x12, 0xe2, 0xd8, 0xfc, 0x19, 0x6b, 0xaa, 0x2a, 0x0b, 0x45, 0x32, 0x30, 0xa3, 1094 0x98, 0x9a, 0x10, 0x89, 0xf8, 0x10, 0x77, 0x16, 0xf2, 0xc6, 0x67, 0xe8, 0xa7, 0xe8, 0xd8, 0xb1, 1095 0x1f, 0x81, 0x31, 0x63, 0xd5, 0x21, 0xc2, 0xee, 0xd2, 0x91, 0x11, 0x75, 0xaa, 0xce, 0x26, 0x77, 1096 0x95, 0xaa, 0xaa, 0x4b, 0xa7, 0xf8, 0xbd, 0x9f, 0xef, 0xe5, 0x3d, 0xdf, 0x1d, 0x7a, 0x76, 0xca, 1097 0x27, 0x21, 0x17, 0xdd, 0x90, 0xcb, 0xf3, 0x2e, 0x8f, 0xa3, 0xce, 0xe5, 0x15, 0x97, 0xdc, 0xae, 1098 0xf0, 0x38, 0x5a, 0xdb, 0x18, 0x8d, 0xe5, 0x79, 0x12, 0x76, 0x4e, 0xf9, 0xa4, 0x3b, 0xe2, 0x23, 1099 0xde, 0x2d, 0x2c, 0x4c, 0xce, 0x8a, 0xa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 0x3f, 0x55, 0x55, 0xb7, 0x5c, 0xb5, 1122 0x7c, 0x60, 0x05, 0xba, 0x94, 0xed, 0xcc, 0x5b, 0x7d, 0x3f, 0x9c, 0x44, 0xf8, 0x95, 0xba, 0x2e, 1123 0x7e, 0x2b, 0x9f, 0xad, 0x37, 0xf7, 0x53, 0x93, 0x37, 0xad, 0xa8, 0xc8, 0xaf, 0xa3, 0x5a, 0xd9, 1124 0xaa, 0xff, 0xf6, 0x36, 0x23, 0xd6, 0x34, 0x23, 0xd6, 0xd7, 0x8c, 0x58, 0x77, 0x19, 0x81, 0xfb, 1125 0x8c, 0xc0, 0x43, 0x46, 0xe0, 0x26, 0x27, 0xf0, 0x29, 0x27, 0xf0, 0x39, 0x27, 0xf0, 0x25, 0x27, 1126 0x70, 0x9b, 0x13, 0x98, 0xe6, 0x04, 0xee, 0x72, 0x02, 0x3f, 0x72, 0x62, 0xdd, 0xe7, 0x04, 0x1e, 1127 0x72, 0x62, 0xdd, 0x7c, 0x27, 0xd6, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x65, 0xb5, 0xca, 1128 0x75, 0x04, 0x00, 0x00, 1129} 1130 1131func (this *Subby) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet) { 1132 return OneDescription() 1133} 1134func (this *AllTypesOneOf) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet) { 1135 return OneDescription() 1136} 1137func (this *TwoOneofs) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet) { 1138 return OneDescription() 1139} 1140func (this *CustomOneof) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet) { 1141 return OneDescription() 1142} 1143func OneDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet) { 1144 d := &github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet{} 1145 var gzipped = []byte{ 1146 // 4296 bytes of a gzipped FileDescriptorSet 1147 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5b, 0x6b, 0x70, 0x1b, 0xd7, 1148 0x75, 0xe6, 0xe2, 0x41, 0x02, 0x07, 0x20, 0xb8, 0x5c, 0x52, 0x12, 0x44, 0xc7, 0x90, 0x04, 0xdb, 1149 0x31, 0xfd, 0x22, 0x6d, 0x8a, 0xa4, 0x24, 0xa8, 0x89, 0x0b, 0x92, 0x10, 0x45, 0x97, 0x24, 0x98, 1150 0x05, 0x19, 0x3f, 0x32, 0x9d, 0x9d, 0xc5, 0xe2, 0x12, 0x5c, 0x69, 0xb1, 0xbb, 0xd9, 0x5d, 0x48, 1151 0x86, 0xa6, 0x3f, 0xd4, 0x71, 0x1f, 0x93, 0xe9, 0x3b, 0xed, 0x4c, 0x13, 0xd7, 0x71, 0x9b, 0x74, 1152 0x1a, 0xa7, 0xe9, 0x2b, 0xe9, 0x23, 0x4d, 0xd2, 0x3f, 0xfd, 0x93, 0xd6, 0xbf, 0x3a, 0xce, 0xbf, 1153 0x4e, 0xa7, 0xe3, 0xb1, 0x18, 0xcf, 0x34, 0x6d, 0xdd, 0xd6, 0x6d, 0xd5, 0x19, 0x4f, 0xfd, 0xa7, 1154 0x73, 0x5f, 0xbb, 0x8b, 0x07, 0xb5, 0x60, 0xa6, 0xb6, 0x7f, 0x89, 0x7b, 0xce, 0xf9, 0xbe, 0x3d, 1155 0xf7, 0xdc, 0x73, 0xcf, 0x3d, 0xf7, 0x2e, 0x04, 0xaf, 0x97, 0xe0, 0x6c, 0xd3, 0xb2, 0x9a, 0x06, 1156 0x9a, 0xb7, 0x1d, 0xcb, 0xb3, 0xea, 0xed, 0xfd, 0xf9, 0x06, 0x72, 0x35, 0x47, 0xb7, 0x3d, 0xcb, 1157 0x99, 0x23, 0x32, 0x69, 0x82, 0x5a, 0xcc, 0x71, 0x8b, 0xe2, 0x16, 0x4c, 0x5e, 0xd1, 0x0d, 0xb4, 1158 0xe6, 0x1b, 0xd6, 0x90, 0x27, 0x5d, 0x84, 0xc4, 0xbe, 0x6e, 0xa0, 0xbc, 0x70, 0x36, 0x3e, 0x9b, 1159 0x59, 0x78, 0x70, 0xae, 0x07, 0x34, 0xd7, 0x8d, 0xd8, 0xc1, 0x62, 0x99, 0x20, 0x8a, 0x6f, 0x27, 1160 0x60, 0x6a, 0x80, 0x56, 0x92, 0x20, 0x61, 0xaa, 0x2d, 0xcc, 0x28, 0xcc, 0xa6, 0x65, 0xf2, 0xb7, 1161 0x94, 0x87, 0x31, 0x5b, 0xd5, 0xae, 0xab, 0x4d, 0x94, 0x8f, 0x11, 0x31, 0x7f, 0x94, 0x0a, 0x00, 1162 0x0d, 0x64, 0x23, 0xb3, 0x81, 0x4c, 0xad, 0x93, 0x8f, 0x9f, 0x8d, 0xcf, 0xa6, 0xe5, 0x90, 0x44, 1163 0x7a, 0x0c, 0x26, 0xed, 0x76, 0xdd, 0xd0, 0x35, 0x25, 0x64, 0x06, 0x67, 0xe3, 0xb3, 0x49, 0x59, 1164 0xa4, 0x8a, 0xb5, 0xc0, 0xf8, 0x61, 0x98, 0xb8, 0x89, 0xd4, 0xeb, 0x61, 0xd3, 0x0c, 0x31, 0xcd, 1165 0x61, 0x71, 0xc8, 0x70, 0x15, 0xb2, 0x2d, 0xe4, 0xba, 0x6a, 0x13, 0x29, 0x5e, 0xc7, 0x46, 0xf9, 1166 0x04, 0x19, 0xfd, 0xd9, 0xbe, 0xd1, 0xf7, 0x8e, 0x3c, 0xc3, 0x50, 0xbb, 0x1d, 0x1b, 0x49, 0x65, 1167 0x48, 0x23, 0xb3, 0xdd, 0xa2, 0x0c, 0xc9, 0x23, 0xe2, 0x57, 0x31, 0xdb, 0xad, 0x5e, 0x96, 0x14, 1168 0x86, 0x31, 0x8a, 0x31, 0x17, 0x39, 0x37, 0x74, 0x0d, 0xe5, 0x47, 0x09, 0xc1, 0xc3, 0x7d, 0x04, 1169 0x35, 0xaa, 0xef, 0xe5, 0xe0, 0x38, 0x69, 0x15, 0xd2, 0xe8, 0x45, 0x0f, 0x99, 0xae, 0x6e, 0x99, 1170 0xf9, 0x31, 0x42, 0xf2, 0xd0, 0x80, 0x59, 0x44, 0x46, 0xa3, 0x97, 0x22, 0xc0, 0x49, 0xcb, 0x30, 1171 0x66, 0xd9, 0x9e, 0x6e, 0x99, 0x6e, 0x3e, 0x75, 0x56, 0x98, 0xcd, 0x2c, 0x7c, 0x6c, 0x60, 0x22, 1172 0x54, 0xa9, 0x8d, 0xcc, 0x8d, 0xa5, 0x0d, 0x10, 0x5d, 0xab, 0xed, 0x68, 0x48, 0xd1, 0xac, 0x06, 1173 0x52, 0x74, 0x73, 0xdf, 0xca, 0xa7, 0x09, 0xc1, 0x99, 0xfe, 0x81, 0x10, 0xc3, 0x55, 0xab, 0x81, 1174 0x36, 0xcc, 0x7d, 0x4b, 0xce, 0xb9, 0x5d, 0xcf, 0xd2, 0x49, 0x18, 0x75, 0x3b, 0xa6, 0xa7, 0xbe, 1175 0x98, 0xcf, 0x92, 0x0c, 0x61, 0x4f, 0xc5, 0xef, 0x8c, 0xc2, 0xc4, 0x30, 0x29, 0x76, 0x19, 0x92, 1176 0xfb, 0x78, 0x94, 0xf9, 0xd8, 0x71, 0x62, 0x40, 0x31, 0xdd, 0x41, 0x1c, 0xfd, 0x11, 0x83, 0x58, 1177 0x86, 0x8c, 0x89, 0x5c, 0x0f, 0x35, 0x68, 0x46, 0xc4, 0x87, 0xcc, 0x29, 0xa0, 0xa0, 0xfe, 0x94, 1178 0x4a, 0xfc, 0x48, 0x29, 0xf5, 0x1c, 0x4c, 0xf8, 0x2e, 0x29, 0x8e, 0x6a, 0x36, 0x79, 0x6e, 0xce, 1179 0x47, 0x79, 0x32, 0x57, 0xe1, 0x38, 0x19, 0xc3, 0xe4, 0x1c, 0xea, 0x7a, 0x96, 0xd6, 0x00, 0x2c, 1180 0x13, 0x59, 0xfb, 0x4a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0xf9, 0x9e, 0x84, 0x51, 0xb3, 0xdd, 0xaa, 0x23, 0x87, 0x04, 1192 0x29, 0x29, 0xb3, 0x27, 0xa9, 0x0c, 0x49, 0x43, 0xad, 0x23, 0x23, 0x9f, 0x38, 0x2b, 0xcc, 0xe6, 1193 0x16, 0x1e, 0x1b, 0x6a, 0x55, 0xce, 0x6d, 0x62, 0x88, 0x4c, 0x91, 0xd2, 0x27, 0x21, 0xc1, 0x4a, 1194 0x34, 0x66, 0x78, 0x74, 0x38, 0x06, 0xbc, 0x96, 0x64, 0x82, 0x93, 0xee, 0x83, 0x34, 0xfe, 0x97, 1195 0xe6, 0xc6, 0x28, 0xf1, 0x39, 0x85, 0x05, 0x38, 0x2f, 0xa4, 0x19, 0x48, 0x91, 0x65, 0xd2, 0x40, 1196 0x7c, 0x6b, 0xf3, 0x9f, 0x71, 0x62, 0x35, 0xd0, 0xbe, 0xda, 0x36, 0x3c, 0xe5, 0x86, 0x6a, 0xb4, 1197 0x11, 0x49, 0xf8, 0xb4, 0x9c, 0x65, 0xc2, 0x4f, 0x63, 0x99, 0x74, 0x06, 0x32, 0x74, 0x55, 0xe9, 1198 0x66, 0x03, 0xbd, 0x48, 0xaa, 0x67, 0x52, 0xa6, 0x0b, 0x6d, 0x03, 0x4b, 0xf0, 0xeb, 0xaf, 0xb9, 1199 0x96, 0xc9, 0x53, 0x93, 0xbc, 0x02, 0x0b, 0xc8, 0xeb, 0x2f, 0xf4, 0x16, 0xee, 0xfb, 0x07, 0x0f, 1200 0xaf, 0x37, 0xa7, 0x8a, 0xdf, 0x8a, 0x41, 0x82, 0xd4, 0x8b, 0x09, 0xc8, 0xec, 0x3e, 0xbf, 0x53, 1201 0x51, 0xd6, 0xaa, 0x7b, 0x2b, 0x9b, 0x15, 0x51, 0x90, 0x72, 0x00, 0x44, 0x70, 0x65, 0xb3, 0x5a, 1202 0xde, 0x15, 0x63, 0xfe, 0xf3, 0xc6, 0xf6, 0xee, 0xf2, 0xa2, 0x18, 0xf7, 0x01, 0x7b, 0x54, 0x90, 1203 0x08, 0x1b, 0x9c, 0x5f, 0x10, 0x93, 0x92, 0x08, 0x59, 0x4a, 0xb0, 0xf1, 0x5c, 0x65, 0x6d, 0x79, 1204 0x51, 0x1c, 0xed, 0x96, 0x9c, 0x5f, 0x10, 0xc7, 0xa4, 0x71, 0x48, 0x13, 0xc9, 0x4a, 0xb5, 0xba, 1205 0x29, 0xa6, 0x7c, 0xce, 0xda, 0xae, 0xbc, 0xb1, 0xbd, 0x2e, 0xa6, 0x7d, 0xce, 0x75, 0xb9, 0xba, 1206 0xb7, 0x23, 0x82, 0xcf, 0xb0, 0x55, 0xa9, 0xd5, 0xca, 0xeb, 0x15, 0x31, 0xe3, 0x5b, 0xac, 0x3c, 1207 0xbf, 0x5b, 0xa9, 0x89, 0xd9, 0x2e, 0xb7, 0xce, 0x2f, 0x88, 0xe3, 0xfe, 0x2b, 0x2a, 0xdb, 0x7b, 1208 0x5b, 0x62, 0x4e, 0x9a, 0x84, 0x71, 0xfa, 0x0a, 0xee, 0xc4, 0x44, 0x8f, 0x68, 0x79, 0x51, 0x14, 1209 0x03, 0x47, 0x28, 0xcb, 0x64, 0x97, 0x60, 0x79, 0x51, 0x94, 0x8a, 0xab, 0x90, 0x24, 0xd9, 0x25, 1210 0x49, 0x90, 0xdb, 0x2c, 0xaf, 0x54, 0x36, 0x95, 0xea, 0xce, 0xee, 0x46, 0x75, 0xbb, 0xbc, 0x29, 1211 0x0a, 0x81, 0x4c, 0xae, 0x7c, 0x6a, 0x6f, 0x43, 0xae, 0xac, 0x89, 0xb1, 0xb0, 0x6c, 0xa7, 0x52, 1212 0xde, 0xad, 0xac, 0x89, 0xf1, 0xa2, 0x06, 0xd3, 0x83, 0xea, 0xe4, 0xc0, 0x95, 0x11, 0x9a, 0xe2, 1213 0xd8, 0x11, 0x53, 0x4c, 0xb8, 0xfa, 0xa6, 0xf8, 0x07, 0x31, 0x98, 0x1a, 0xb0, 0x57, 0x0c, 0x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0x62, 0x93, 0x3d, 0x6f, 0xff, 0xa2, 0x54, 0x83, 0x2c, 0x9e, 0x8c, 0x96, 0x7e, 1237 0x0b, 0x29, 0xfb, 0x96, 0x43, 0xb6, 0xc6, 0xdc, 0x80, 0xd2, 0x14, 0x8a, 0xe0, 0x5c, 0x95, 0x01, 1238 0xb6, 0xac, 0x06, 0x2a, 0x25, 0x6b, 0x3b, 0x95, 0xca, 0x9a, 0x9c, 0xe1, 0x2c, 0x57, 0x2c, 0x07, 1239 0x27, 0x54, 0xd3, 0xf2, 0x03, 0x9c, 0xa1, 0x09, 0xd5, 0xb4, 0x78, 0x78, 0x97, 0x60, 0x4a, 0xd3, 1240 0xe8, 0x98, 0x75, 0x4d, 0x61, 0x67, 0x2c, 0x37, 0x2f, 0x76, 0x05, 0x4b, 0xd3, 0xd6, 0xa9, 0x01, 1241 0xcb, 0x71, 0x57, 0xba, 0x04, 0x27, 0x82, 0x60, 0x85, 0x81, 0x93, 0x7d, 0xa3, 0xec, 0x85, 0x2e, 1242 0xc1, 0x94, 0xdd, 0xe9, 0x07, 0x4a, 0x5d, 0x6f, 0xb4, 0x3b, 0xbd, 0xb0, 0x0b, 0x30, 0x6d, 0x1f, 1243 0xd8, 0xfd, 0xb8, 0x47, 0xc3, 0x38, 0xc9, 0x3e, 0xb0, 0x7b, 0x81, 0x0f, 0x91, 0x03, 0xb7, 0x83, 1244 0x34, 0xd5, 0x43, 0x8d, 0xfc, 0xa9, 0xb0, 0x79, 0x48, 0x21, 0xcd, 0x83, 0xa8, 0x69, 0x0a, 0x32, 1245 0xd5, 0xba, 0x81, 0x14, 0xd5, 0x41, 0xa6, 0xea, 0xe6, 0xcf, 0x84, 0x8d, 0x73, 0x9a, 0x56, 0x21, 1246 0xda, 0x32, 0x51, 0x4a, 0x8f, 0xc2, 0xa4, 0x55, 0xbf, 0xa6, 0xd1, 0x94, 0x54, 0x6c, 0x07, 0xed, 1247 0xeb, 0x2f, 0xe6, 0x1f, 0x24, 0xf1, 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0xbc, 0x24, 0x00, 0x16, 0x31, 0x71, 0x44, 1270 0x4a, 0x41, 0x62, 0xb5, 0x2a, 0xe3, 0xf4, 0x17, 0x21, 0x4b, 0xa5, 0xca, 0xce, 0x46, 0x65, 0xb5, 1271 0x22, 0xc6, 0x8a, 0x4b, 0x30, 0x4a, 0x83, 0x80, 0x97, 0x86, 0x1f, 0x06, 0x71, 0x84, 0x3d, 0x32, 1272 0x0e, 0x81, 0x6b, 0xf7, 0xb6, 0x56, 0x2a, 0xb2, 0x18, 0x0b, 0x4f, 0xaf, 0x0b, 0xd9, 0x70, 0xc3, 1273 0xfd, 0xe1, 0xe4, 0xd4, 0x77, 0x05, 0xc8, 0x84, 0x1a, 0x68, 0xdc, 0xf9, 0xa8, 0x86, 0x61, 0xdd, 1274 0x54, 0x54, 0x43, 0x57, 0x5d, 0x96, 0x14, 0x40, 0x44, 0x65, 0x2c, 0x19, 0x76, 0xd2, 0x3e, 0x14, 1275 0xe7, 0x5f, 0x15, 0x40, 0xec, 0xed, 0x5d, 0x7b, 0x1c, 0x14, 0x3e, 0x52, 0x07, 0x5f, 0x11, 0x20, 1276 0xd7, 0xdd, 0xb0, 0xf6, 0xb8, 0x77, 0xee, 0x23, 0x75, 0xef, 0xad, 0x18, 0x8c, 0x77, 0xb5, 0xa9, 1277 0xc3, 0x7a, 0xf7, 0x59, 0x98, 0xd4, 0x1b, 0xa8, 0x65, 0x5b, 0x1e, 0x32, 0xb5, 0x8e, 0x62, 0xa0, 1278 0x1b, 0xc8, 0xc8, 0x17, 0x49, 0xa1, 0x98, 0xbf, 0x77, 0x23, 0x3c, 0xb7, 0x11, 0xe0, 0x36, 0x31, 1279 0xac, 0x34, 0xb5, 0xb1, 0x56, 0xd9, 0xda, 0xa9, 0xee, 0x56, 0xb6, 0x57, 0x9f, 0x57, 0xf6, 0xb6, 1280 0x7f, 0x62, 0xbb, 0xfa, 0xec, 0xb6, 0x2c, 0xea, 0x3d, 0x66, 0x1f, 0xe0, 0x52, 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 0x9e, 0xd5, 0x22, 0x75, 0xef, 0xde, 0x34, 0x7f, 0xfb, 0x36, 0x5d, 0x2b, 0x39, 0x0c, 0x5b, 0xf5, 1315 0x51, 0xa5, 0x12, 0x90, 0x6f, 0x59, 0x0d, 0xa4, 0x19, 0x11, 0x0c, 0xaf, 0x33, 0x47, 0x7c, 0xfb, 1316 0xd2, 0xa7, 0x61, 0x1a, 0xff, 0x4d, 0xca, 0x52, 0xd8, 0x93, 0xe8, 0x9b, 0xb4, 0xfc, 0xf7, 0x5f, 1317 0xa2, 0xcb, 0x71, 0xca, 0x27, 0x08, 0xf9, 0x14, 0x9a, 0xc5, 0x26, 0xf2, 0x3c, 0xe4, 0xb8, 0x8a, 1318 0x6a, 0x0c, 0x72, 0x2f, 0x74, 0x15, 0x91, 0xff, 0xe2, 0x3b, 0xdd, 0xb3, 0xb8, 0x4e, 0x91, 0x65, 1319 0xc3, 0x28, 0xed, 0xc1, 0xa9, 0x01, 0x59, 0x31, 0x04, 0xe7, 0xcb, 0x8c, 0x73, 0xba, 0x2f, 0x33, 1320 0x30, 0xed, 0x0e, 0x70, 0xb9, 0x3f, 0x97, 0x43, 0x70, 0xfe, 0x16, 0xe3, 0x94, 0x18, 0x96, 0x4f, 1321 0x29, 0x66, 0x7c, 0x06, 0x26, 0x6f, 0x20, 0xa7, 0x6e, 0xb9, 0xec, 0xfa, 0x67, 0x08, 0xba, 0x57, 1322 0x18, 0xdd, 0x04, 0x03, 0x92, 0xfb, 0x20, 0xcc, 0x75, 0x09, 0x52, 0xfb, 0xaa, 0x86, 0x86, 0xa0, 1323 0xf8, 0x12, 0xa3, 0x18, 0xc3, 0xf6, 0x18, 0x5a, 0x86, 0x6c, 0xd3, 0x62, 0x3b, 0x53, 0x34, 0xfc, 1324 0x55, 0x06, 0xcf, 0x70, 0x0c, 0xa3, 0xb0, 0x2d, 0xbb, 0x6d, 0xe0, 0x6d, 0x2b, 0x9a, 0xe2, 0xb7, 1325 0x39, 0x05, 0xc7, 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45, 0x3b, 0xf6, 0x1d, 0x5e, 0x89, 0x42, 0x30, 0xec, 0x5b, 0xa8, 1348 0x43, 0xc4, 0x61, 0xd7, 0xf0, 0xf9, 0x60, 0x08, 0xba, 0xef, 0xf6, 0x38, 0x57, 0xe3, 0x58, 0xcc, 1349 0x19, 0xea, 0x7f, 0xda, 0xe6, 0x75, 0xd4, 0x19, 0x2a, 0x3b, 0xff, 0xaa, 0xa7, 0xff, 0xd9, 0xa3, 1350 0x48, 0x5a, 0x43, 0x26, 0x7a, 0xfa, 0x29, 0x29, 0xea, 0x57, 0x40, 0xf9, 0x9f, 0xbe, 0xcb, 0xc6, 1351 0xdb, 0xdd, 0x4e, 0x95, 0x36, 0x71, 0x92, 0x77, 0x37, 0x3d, 0xd1, 0x64, 0x2f, 0xdd, 0xf5, 0xf3, 1352 0xbc, 0xab, 0xe7, 0x29, 0x5d, 0x81, 0xf1, 0xae, 0x86, 0x27, 0x9a, 0xea, 0x67, 0x18, 0x55, 0x36, 1353 0xdc, 0xef, 0x94, 0x96, 0x20, 0x81, 0x9b, 0x97, 0x68, 0xf8, 0xcf, 0x32, 0x38, 0x31, 0x2f, 0x7d, 1354 0x02, 0x52, 0xbc, 0x69, 0x89, 0x86, 0xfe, 0x1c, 0x83, 0xfa, 0x10, 0x0c, 0xe7, 0x0d, 0x4b, 0x34, 1355 0xfc, 0xe7, 0x39, 0x9c, 0x43, 0x30, 0x7c, 0xf8, 0x10, 0xfe, 0xf5, 0x2f, 0x24, 0xd8, 0xa6, 0xc3, 1356 0x63, 0x77, 0x19, 0xc6, 0x58, 0xa7, 0x12, 0x8d, 0xfe, 0x1c, 0x7b, 0x39, 0x47, 0x94, 0x2e, 0x40, 1357 0x72, 0xc8, 0x80, 0xff, 0x12, 0x83, 0x52, 0xfb, 0xd2, 0x2a, 0x64, 0x42, 0xdd, 0x49, 0x34, 0xfc, 1358 0x97, 0x19, 0x3c, 0x8c, 0xc2, 0xae, 0xb3, 0xee, 0x24, 0x9a, 0xe0, 0x57, 0xb8, 0xeb, 0x0c, 0x81, 1359 0xc3, 0xc6, 0x1b, 0x93, 0x68, 0xf4, 0xaf, 0xf2, 0xa8, 0x73, 0x48, 0xe9, 0x69, 0x48, 0xfb, 0x9b, 1360 0x4d, 0x34, 0xfe, 0xd7, 0x18, 0x3e, 0xc0, 0xe0, 0x08, 0x84, 0x36, 0xbb, 0x68, 0x8a, 0xcf, 0xf3, 1361 0x08, 0x84, 0x50, 0x78, 0x19, 0xf5, 0x36, 0x30, 0xd1, 0x4c, 0xbf, 0xce, 0x97, 0x51, 0x4f, 0xff, 1362 0x82, 0x67, 0x93, 0xd4, 0xfc, 0x68, 0x8a, 0xdf, 0xe0, 0xb3, 0x49, 0xec, 0xb1, 0x1b, 0xbd, 0x1d, 1363 0x41, 0x34, 0xc7, 0x6f, 0x72, 0x37, 0x7a, 0x1a, 0x82, 0xd2, 0x0e, 0x48, 0xfd, 0xdd, 0x40, 0x34, 1364 0xdf, 0x17, 0x18, 0xdf, 0x64, 0x5f, 0x33, 0x50, 0x7a, 0x16, 0x4e, 0x0e, 0xee, 0x04, 0xa2, 0x59, 1365 0xbf, 0x78, 0xb7, 0xe7, 0xec, 0x16, 0x6e, 0x04, 0x4a, 0xbb, 0xc1, 0x96, 0x12, 0xee, 0x02, 0xa2, 1366 0x69, 0x5f, 0xbe, 0xdb, 0x5d, 0xb8, 0xc3, 0x4d, 0x40, 0xa9, 0x0c, 0x10, 0x6c, 0xc0, 0xd1, 0x5c, 1367 0xaf, 0x30, 0xae, 0x10, 0x08, 0x2f, 0x0d, 0xb6, 0xff, 0x46, 0xe3, 0xbf, 0xc4, 0x97, 0x06, 0x43, 1368 0xe0, 0xa5, 0xc1, 0xb7, 0xde, 0x68, 0xf4, 0xab, 0x7c, 0x69, 0x70, 0x08, 0xce, 0xec, 0xd0, 0xee, 1369 0x16, 0xcd, 0xf0, 0x65, 0x9e, 0xd9, 0x21, 0x54, 0x69, 0x1b, 0x26, 0xfb, 0x36, 0x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23, 0xf9, 1392 0x9a, 0x8b, 0xbe, 0xe6, 0x12, 0xf9, 0x49, 0xd5, 0x98, 0xaf, 0xb9, 0x24, 0xcd, 0xc0, 0x18, 0x1d, 1393 0xd9, 0x93, 0xe4, 0x2b, 0xfe, 0xc4, 0xd5, 0x11, 0x99, 0x0b, 0x02, 0xdd, 0x53, 0xe4, 0x67, 0x53, 1394 0xa3, 0x81, 0xee, 0xa9, 0x40, 0xb7, 0x40, 0xfe, 0xf7, 0x86, 0x18, 0xe8, 0x16, 0x02, 0xdd, 0xf9, 1395 0xfc, 0x38, 0x4e, 0x8e, 0x40, 0x77, 0x3e, 0xd0, 0x2d, 0xe6, 0x73, 0x78, 0x06, 0x02, 0xdd, 0x62, 1396 0xa0, 0x5b, 0xca, 0x4f, 0x9c, 0x15, 0x66, 0xb3, 0x81, 0x6e, 0x49, 0x7a, 0x02, 0x32, 0x6e, 0xbb, 1397 0xae, 0xb0, 0x32, 0x4f, 0x7e, 0x9e, 0x95, 0x59, 0x80, 0x39, 0x9c, 0x13, 0x64, 0x5a, 0xaf, 0x8e, 1398 0xc8, 0xe0, 0xb6, 0xeb, 0xac, 0x0a, 0xaf, 0x64, 0x81, 0x5c, 0x3e, 0x29, 0xe4, 0x57, 0xd5, 0xc5, 1399 0x37, 0x04, 0x48, 0xef, 0xde, 0xb4, 0xc8, 0x37, 0x7c, 0xf7, 0xff, 0x79, 0x72, 0xb9, 0xd3, 0xe7, 1400 0x17, 0xc9, 0x67, 0xd6, 0xf4, 0x55, 0x41, 0xe6, 0x82, 0x40, 0xb7, 0x94, 0x7f, 0x80, 0x0c, 0xc8, 1401 0xd7, 0x2d, 0x49, 0xf3, 0x90, 0x0d, 0x0d, 0x68, 0x81, 0xfc, 0x70, 0xaa, 0x7b, 0x44, 0x82, 0x9c, 1402 0x09, 0x46, 0xb4, 0xb0, 0x92, 0x04, 0x9c, 0xf6, 0xf8, 0x1f, 0xef, 0xa6, 0x55, 0xfc, 0x7c, 0x0c, 1403 0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0x82, 0xf0, 0xde, 0x61, 0x61, 0xe4, 0xf6, 0x0f, 0x0a, 0x23, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 1415 0x73, 0xc4, 0x37, 0x6f, 0x6c, 0x37, 0x00, 0x00, 1416 } 1417 r := bytes.NewReader(gzipped) 1418 gzipr, err := compress_gzip.NewReader(r) 1419 if err != nil { 1420 panic(err) 1421 } 1422 ungzipped, err := io_ioutil.ReadAll(gzipr) 1423 if err != nil { 1424 panic(err) 1425 } 1426 if err := github_com_gogo_protobuf_proto.Unmarshal(ungzipped, d); err != nil { 1427 panic(err) 1428 } 1429 return d 1430} 1431func (this *Subby) VerboseEqual(that interface{}) error { 1432 if that == nil { 1433 if this == nil { 1434 return nil 1435 } 1436 return fmt.Errorf("that == nil && this != nil") 1437 } 1438 1439 that1, ok := that.(*Subby) 1440 if !ok { 1441 that2, ok := that.(Subby) 1442 if ok { 1443 that1 = &that2 1444 } else { 1445 return fmt.Errorf("that is not of type *Subby") 1446 } 1447 } 1448 if that1 == nil { 1449 if this == nil { 1450 return nil 1451 } 1452 return fmt.Errorf("that is type *Subby but is nil && this != nil") 1453 } else if this == nil { 1454 return fmt.Errorf("that is type *Subby but is not nil && this == nil") 1455 } 1456 if this.Sub != nil && that1.Sub != nil { 1457 if *this.Sub != *that1.Sub { 1458 return fmt.Errorf("Sub this(%v) Not Equal that(%v)", *this.Sub, *that1.Sub) 1459 } 1460 } else if this.Sub != nil { 1461 return fmt.Errorf("this.Sub == nil && that.Sub != nil") 1462 } else if that1.Sub != nil { 1463 return fmt.Errorf("Sub this(%v) Not Equal that(%v)", this.Sub, that1.Sub) 1464 } 1465 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 1466 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) 1467 } 1468 return nil 1469} 1470func (this *Subby) Equal(that interface{}) bool { 1471 if that == nil { 1472 return this == nil 1473 } 1474 1475 that1, ok := that.(*Subby) 1476 if !ok { 1477 that2, ok := that.(Subby) 1478 if ok { 1479 that1 = &that2 1480 } else { 1481 return false 1482 } 1483 } 1484 if that1 == nil { 1485 return this == nil 1486 } else if this == nil { 1487 return false 1488 } 1489 if this.Sub != nil && that1.Sub != nil { 1490 if *this.Sub != *that1.Sub { 1491 return false 1492 } 1493 } else if this.Sub != nil { 1494 return false 1495 } else if that1.Sub != nil { 1496 return false 1497 } 1498 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 1499 return false 1500 } 1501 return true 1502} 1503func (this *AllTypesOneOf) VerboseEqual(that interface{}) error { 1504 if that == nil { 1505 if this == nil { 1506 return nil 1507 } 1508 return fmt.Errorf("that == nil && this != nil") 1509 } 1510 1511 that1, ok := that.(*AllTypesOneOf) 1512 if !ok { 1513 that2, ok := that.(AllTypesOneOf) 1514 if ok { 1515 that1 = &that2 1516 } else { 1517 return fmt.Errorf("that is not of type *AllTypesOneOf") 1518 } 1519 } 1520 if that1 == nil { 1521 if this == nil { 1522 return nil 1523 } 1524 return fmt.Errorf("that is type *AllTypesOneOf but is nil && this != nil") 1525 } else if this == nil { 1526 return fmt.Errorf("that is type *AllTypesOneOf but is not nil && this == nil") 1527 } 1528 if that1.TestOneof == nil { 1529 if this.TestOneof != nil { 1530 return fmt.Errorf("this.TestOneof != nil && that1.TestOneof == nil") 1531 } 1532 } else if this.TestOneof == nil { 1533 return fmt.Errorf("this.TestOneof == nil && that1.TestOneof != nil") 1534 } else if err := this.TestOneof.VerboseEqual(that1.TestOneof); err != nil { 1535 return err 1536 } 1537 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 1538 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) 1539 } 1540 return nil 1541} 1542func (this *AllTypesOneOf_Field1) VerboseEqual(that interface{}) error { 1543 if that == nil { 1544 if this == nil { 1545 return nil 1546 } 1547 return fmt.Errorf("that == nil && this != nil") 1548 } 1549 1550 that1, ok := that.(*AllTypesOneOf_Field1) 1551 if !ok { 1552 that2, ok := that.(AllTypesOneOf_Field1) 1553 if ok { 1554 that1 = &that2 1555 } else { 1556 return fmt.Errorf("that is not of type *AllTypesOneOf_Field1") 1557 } 1558 } 1559 if that1 == nil { 1560 if this == nil { 1561 return nil 1562 } 1563 return fmt.Errorf("that is type *AllTypesOneOf_Field1 but is nil && this != nil") 1564 } else if this == nil { 1565 return fmt.Errorf("that is type *AllTypesOneOf_Field1 but is not nil && this == nil") 1566 } 1567 if this.Field1 != that1.Field1 { 1568 return fmt.Errorf("Field1 this(%v) Not Equal that(%v)", this.Field1, that1.Field1) 1569 } 1570 return nil 1571} 1572func (this *AllTypesOneOf_Field2) VerboseEqual(that interface{}) error { 1573 if that == nil { 1574 if this == nil { 1575 return nil 1576 } 1577 return fmt.Errorf("that == nil && this != nil") 1578 } 1579 1580 that1, ok := that.(*AllTypesOneOf_Field2) 1581 if !ok { 1582 that2, ok := that.(AllTypesOneOf_Field2) 1583 if ok { 1584 that1 = &that2 1585 } else { 1586 return fmt.Errorf("that is not of type *AllTypesOneOf_Field2") 1587 } 1588 } 1589 if that1 == nil { 1590 if this == nil { 1591 return nil 1592 } 1593 return fmt.Errorf("that is type *AllTypesOneOf_Field2 but is nil && this != nil") 1594 } else if this == nil { 1595 return fmt.Errorf("that is type *AllTypesOneOf_Field2 but is not nil && this == nil") 1596 } 1597 if this.Field2 != that1.Field2 { 1598 return fmt.Errorf("Field2 this(%v) Not Equal that(%v)", this.Field2, that1.Field2) 1599 } 1600 return nil 1601} 1602func (this *AllTypesOneOf_Field3) VerboseEqual(that interface{}) error { 1603 if that == nil { 1604 if this == nil { 1605 return nil 1606 } 1607 return fmt.Errorf("that == nil && this != nil") 1608 } 1609 1610 that1, ok := that.(*AllTypesOneOf_Field3) 1611 if !ok { 1612 that2, ok := that.(AllTypesOneOf_Field3) 1613 if ok { 1614 that1 = &that2 1615 } else { 1616 return fmt.Errorf("that is not of type *AllTypesOneOf_Field3") 1617 } 1618 } 1619 if that1 == nil { 1620 if this == nil { 1621 return nil 1622 } 1623 return fmt.Errorf("that is type *AllTypesOneOf_Field3 but is nil && this != nil") 1624 } else if this == nil { 1625 return fmt.Errorf("that is type *AllTypesOneOf_Field3 but is not nil && this == nil") 1626 } 1627 if this.Field3 != that1.Field3 { 1628 return fmt.Errorf("Field3 this(%v) Not Equal that(%v)", this.Field3, that1.Field3) 1629 } 1630 return nil 1631} 1632func (this *AllTypesOneOf_Field4) VerboseEqual(that interface{}) error { 1633 if that == nil { 1634 if this == nil { 1635 return nil 1636 } 1637 return fmt.Errorf("that == nil && this != nil") 1638 } 1639 1640 that1, ok := that.(*AllTypesOneOf_Field4) 1641 if !ok { 1642 that2, ok := that.(AllTypesOneOf_Field4) 1643 if ok { 1644 that1 = &that2 1645 } else { 1646 return fmt.Errorf("that is not of type *AllTypesOneOf_Field4") 1647 } 1648 } 1649 if that1 == nil { 1650 if this == nil { 1651 return nil 1652 } 1653 return fmt.Errorf("that is type *AllTypesOneOf_Field4 but is nil && this != nil") 1654 } else if this == nil { 1655 return fmt.Errorf("that is type *AllTypesOneOf_Field4 but is not nil && this == nil") 1656 } 1657 if this.Field4 != that1.Field4 { 1658 return fmt.Errorf("Field4 this(%v) Not Equal that(%v)", this.Field4, that1.Field4) 1659 } 1660 return nil 1661} 1662func (this *AllTypesOneOf_Field5) VerboseEqual(that interface{}) error { 1663 if that == nil { 1664 if this == nil { 1665 return nil 1666 } 1667 return fmt.Errorf("that == nil && this != nil") 1668 } 1669 1670 that1, ok := that.(*AllTypesOneOf_Field5) 1671 if !ok { 1672 that2, ok := that.(AllTypesOneOf_Field5) 1673 if ok { 1674 that1 = &that2 1675 } else { 1676 return fmt.Errorf("that is not of type *AllTypesOneOf_Field5") 1677 } 1678 } 1679 if that1 == nil { 1680 if this == nil { 1681 return nil 1682 } 1683 return fmt.Errorf("that is type *AllTypesOneOf_Field5 but is nil && this != nil") 1684 } else if this == nil { 1685 return fmt.Errorf("that is type *AllTypesOneOf_Field5 but is not nil && this == nil") 1686 } 1687 if this.Field5 != that1.Field5 { 1688 return fmt.Errorf("Field5 this(%v) Not Equal that(%v)", this.Field5, that1.Field5) 1689 } 1690 return nil 1691} 1692func (this *AllTypesOneOf_Field6) VerboseEqual(that interface{}) error { 1693 if that == nil { 1694 if this == nil { 1695 return nil 1696 } 1697 return fmt.Errorf("that == nil && this != nil") 1698 } 1699 1700 that1, ok := that.(*AllTypesOneOf_Field6) 1701 if !ok { 1702 that2, ok := that.(AllTypesOneOf_Field6) 1703 if ok { 1704 that1 = &that2 1705 } else { 1706 return fmt.Errorf("that is not of type *AllTypesOneOf_Field6") 1707 } 1708 } 1709 if that1 == nil { 1710 if this == nil { 1711 return nil 1712 } 1713 return fmt.Errorf("that is type *AllTypesOneOf_Field6 but is nil && this != nil") 1714 } else if this == nil { 1715 return fmt.Errorf("that is type *AllTypesOneOf_Field6 but is not nil && this == nil") 1716 } 1717 if this.Field6 != that1.Field6 { 1718 return fmt.Errorf("Field6 this(%v) Not Equal that(%v)", this.Field6, that1.Field6) 1719 } 1720 return nil 1721} 1722func (this *AllTypesOneOf_Field7) VerboseEqual(that interface{}) error { 1723 if that == nil { 1724 if this == nil { 1725 return nil 1726 } 1727 return fmt.Errorf("that == nil && this != nil") 1728 } 1729 1730 that1, ok := that.(*AllTypesOneOf_Field7) 1731 if !ok { 1732 that2, ok := that.(AllTypesOneOf_Field7) 1733 if ok { 1734 that1 = &that2 1735 } else { 1736 return fmt.Errorf("that is not of type *AllTypesOneOf_Field7") 1737 } 1738 } 1739 if that1 == nil { 1740 if this == nil { 1741 return nil 1742 } 1743 return fmt.Errorf("that is type *AllTypesOneOf_Field7 but is nil && this != nil") 1744 } else if this == nil { 1745 return fmt.Errorf("that is type *AllTypesOneOf_Field7 but is not nil && this == nil") 1746 } 1747 if this.Field7 != that1.Field7 { 1748 return fmt.Errorf("Field7 this(%v) Not Equal that(%v)", this.Field7, that1.Field7) 1749 } 1750 return nil 1751} 1752func (this *AllTypesOneOf_Field8) VerboseEqual(that interface{}) error { 1753 if that == nil { 1754 if this == nil { 1755 return nil 1756 } 1757 return fmt.Errorf("that == nil && this != nil") 1758 } 1759 1760 that1, ok := that.(*AllTypesOneOf_Field8) 1761 if !ok { 1762 that2, ok := that.(AllTypesOneOf_Field8) 1763 if ok { 1764 that1 = &that2 1765 } else { 1766 return fmt.Errorf("that is not of type *AllTypesOneOf_Field8") 1767 } 1768 } 1769 if that1 == nil { 1770 if this == nil { 1771 return nil 1772 } 1773 return fmt.Errorf("that is type *AllTypesOneOf_Field8 but is nil && this != nil") 1774 } else if this == nil { 1775 return fmt.Errorf("that is type *AllTypesOneOf_Field8 but is not nil && this == nil") 1776 } 1777 if this.Field8 != that1.Field8 { 1778 return fmt.Errorf("Field8 this(%v) Not Equal that(%v)", this.Field8, that1.Field8) 1779 } 1780 return nil 1781} 1782func (this *AllTypesOneOf_Field9) VerboseEqual(that interface{}) error { 1783 if that == nil { 1784 if this == nil { 1785 return nil 1786 } 1787 return fmt.Errorf("that == nil && this != nil") 1788 } 1789 1790 that1, ok := that.(*AllTypesOneOf_Field9) 1791 if !ok { 1792 that2, ok := that.(AllTypesOneOf_Field9) 1793 if ok { 1794 that1 = &that2 1795 } else { 1796 return fmt.Errorf("that is not of type *AllTypesOneOf_Field9") 1797 } 1798 } 1799 if that1 == nil { 1800 if this == nil { 1801 return nil 1802 } 1803 return fmt.Errorf("that is type *AllTypesOneOf_Field9 but is nil && this != nil") 1804 } else if this == nil { 1805 return fmt.Errorf("that is type *AllTypesOneOf_Field9 but is not nil && this == nil") 1806 } 1807 if this.Field9 != that1.Field9 { 1808 return fmt.Errorf("Field9 this(%v) Not Equal that(%v)", this.Field9, that1.Field9) 1809 } 1810 return nil 1811} 1812func (this *AllTypesOneOf_Field10) VerboseEqual(that interface{}) error { 1813 if that == nil { 1814 if this == nil { 1815 return nil 1816 } 1817 return fmt.Errorf("that == nil && this != nil") 1818 } 1819 1820 that1, ok := that.(*AllTypesOneOf_Field10) 1821 if !ok { 1822 that2, ok := that.(AllTypesOneOf_Field10) 1823 if ok { 1824 that1 = &that2 1825 } else { 1826 return fmt.Errorf("that is not of type *AllTypesOneOf_Field10") 1827 } 1828 } 1829 if that1 == nil { 1830 if this == nil { 1831 return nil 1832 } 1833 return fmt.Errorf("that is type *AllTypesOneOf_Field10 but is nil && this != nil") 1834 } else if this == nil { 1835 return fmt.Errorf("that is type *AllTypesOneOf_Field10 but is not nil && this == nil") 1836 } 1837 if this.Field10 != that1.Field10 { 1838 return fmt.Errorf("Field10 this(%v) Not Equal that(%v)", this.Field10, that1.Field10) 1839 } 1840 return nil 1841} 1842func (this *AllTypesOneOf_Field11) VerboseEqual(that interface{}) error { 1843 if that == nil { 1844 if this == nil { 1845 return nil 1846 } 1847 return fmt.Errorf("that == nil && this != nil") 1848 } 1849 1850 that1, ok := that.(*AllTypesOneOf_Field11) 1851 if !ok { 1852 that2, ok := that.(AllTypesOneOf_Field11) 1853 if ok { 1854 that1 = &that2 1855 } else { 1856 return fmt.Errorf("that is not of type *AllTypesOneOf_Field11") 1857 } 1858 } 1859 if that1 == nil { 1860 if this == nil { 1861 return nil 1862 } 1863 return fmt.Errorf("that is type *AllTypesOneOf_Field11 but is nil && this != nil") 1864 } else if this == nil { 1865 return fmt.Errorf("that is type *AllTypesOneOf_Field11 but is not nil && this == nil") 1866 } 1867 if this.Field11 != that1.Field11 { 1868 return fmt.Errorf("Field11 this(%v) Not Equal that(%v)", this.Field11, that1.Field11) 1869 } 1870 return nil 1871} 1872func (this *AllTypesOneOf_Field12) VerboseEqual(that interface{}) error { 1873 if that == nil { 1874 if this == nil { 1875 return nil 1876 } 1877 return fmt.Errorf("that == nil && this != nil") 1878 } 1879 1880 that1, ok := that.(*AllTypesOneOf_Field12) 1881 if !ok { 1882 that2, ok := that.(AllTypesOneOf_Field12) 1883 if ok { 1884 that1 = &that2 1885 } else { 1886 return fmt.Errorf("that is not of type *AllTypesOneOf_Field12") 1887 } 1888 } 1889 if that1 == nil { 1890 if this == nil { 1891 return nil 1892 } 1893 return fmt.Errorf("that is type *AllTypesOneOf_Field12 but is nil && this != nil") 1894 } else if this == nil { 1895 return fmt.Errorf("that is type *AllTypesOneOf_Field12 but is not nil && this == nil") 1896 } 1897 if this.Field12 != that1.Field12 { 1898 return fmt.Errorf("Field12 this(%v) Not Equal that(%v)", this.Field12, that1.Field12) 1899 } 1900 return nil 1901} 1902func (this *AllTypesOneOf_Field13) VerboseEqual(that interface{}) error { 1903 if that == nil { 1904 if this == nil { 1905 return nil 1906 } 1907 return fmt.Errorf("that == nil && this != nil") 1908 } 1909 1910 that1, ok := that.(*AllTypesOneOf_Field13) 1911 if !ok { 1912 that2, ok := that.(AllTypesOneOf_Field13) 1913 if ok { 1914 that1 = &that2 1915 } else { 1916 return fmt.Errorf("that is not of type *AllTypesOneOf_Field13") 1917 } 1918 } 1919 if that1 == nil { 1920 if this == nil { 1921 return nil 1922 } 1923 return fmt.Errorf("that is type *AllTypesOneOf_Field13 but is nil && this != nil") 1924 } else if this == nil { 1925 return fmt.Errorf("that is type *AllTypesOneOf_Field13 but is not nil && this == nil") 1926 } 1927 if this.Field13 != that1.Field13 { 1928 return fmt.Errorf("Field13 this(%v) Not Equal that(%v)", this.Field13, that1.Field13) 1929 } 1930 return nil 1931} 1932func (this *AllTypesOneOf_Field14) VerboseEqual(that interface{}) error { 1933 if that == nil { 1934 if this == nil { 1935 return nil 1936 } 1937 return fmt.Errorf("that == nil && this != nil") 1938 } 1939 1940 that1, ok := that.(*AllTypesOneOf_Field14) 1941 if !ok { 1942 that2, ok := that.(AllTypesOneOf_Field14) 1943 if ok { 1944 that1 = &that2 1945 } else { 1946 return fmt.Errorf("that is not of type *AllTypesOneOf_Field14") 1947 } 1948 } 1949 if that1 == nil { 1950 if this == nil { 1951 return nil 1952 } 1953 return fmt.Errorf("that is type *AllTypesOneOf_Field14 but is nil && this != nil") 1954 } else if this == nil { 1955 return fmt.Errorf("that is type *AllTypesOneOf_Field14 but is not nil && this == nil") 1956 } 1957 if this.Field14 != that1.Field14 { 1958 return fmt.Errorf("Field14 this(%v) Not Equal that(%v)", this.Field14, that1.Field14) 1959 } 1960 return nil 1961} 1962func (this *AllTypesOneOf_Field15) VerboseEqual(that interface{}) error { 1963 if that == nil { 1964 if this == nil { 1965 return nil 1966 } 1967 return fmt.Errorf("that == nil && this != nil") 1968 } 1969 1970 that1, ok := that.(*AllTypesOneOf_Field15) 1971 if !ok { 1972 that2, ok := that.(AllTypesOneOf_Field15) 1973 if ok { 1974 that1 = &that2 1975 } else { 1976 return fmt.Errorf("that is not of type *AllTypesOneOf_Field15") 1977 } 1978 } 1979 if that1 == nil { 1980 if this == nil { 1981 return nil 1982 } 1983 return fmt.Errorf("that is type *AllTypesOneOf_Field15 but is nil && this != nil") 1984 } else if this == nil { 1985 return fmt.Errorf("that is type *AllTypesOneOf_Field15 but is not nil && this == nil") 1986 } 1987 if !bytes.Equal(this.Field15, that1.Field15) { 1988 return fmt.Errorf("Field15 this(%v) Not Equal that(%v)", this.Field15, that1.Field15) 1989 } 1990 return nil 1991} 1992func (this *AllTypesOneOf_SubMessage) VerboseEqual(that interface{}) error { 1993 if that == nil { 1994 if this == nil { 1995 return nil 1996 } 1997 return fmt.Errorf("that == nil && this != nil") 1998 } 1999 2000 that1, ok := that.(*AllTypesOneOf_SubMessage) 2001 if !ok { 2002 that2, ok := that.(AllTypesOneOf_SubMessage) 2003 if ok { 2004 that1 = &that2 2005 } else { 2006 return fmt.Errorf("that is not of type *AllTypesOneOf_SubMessage") 2007 } 2008 } 2009 if that1 == nil { 2010 if this == nil { 2011 return nil 2012 } 2013 return fmt.Errorf("that is type *AllTypesOneOf_SubMessage but is nil && this != nil") 2014 } else if this == nil { 2015 return fmt.Errorf("that is type *AllTypesOneOf_SubMessage but is not nil && this == nil") 2016 } 2017 if !this.SubMessage.Equal(that1.SubMessage) { 2018 return fmt.Errorf("SubMessage this(%v) Not Equal that(%v)", this.SubMessage, that1.SubMessage) 2019 } 2020 return nil 2021} 2022func (this *AllTypesOneOf) Equal(that interface{}) bool { 2023 if that == nil { 2024 return this == nil 2025 } 2026 2027 that1, ok := that.(*AllTypesOneOf) 2028 if !ok { 2029 that2, ok := that.(AllTypesOneOf) 2030 if ok { 2031 that1 = &that2 2032 } else { 2033 return false 2034 } 2035 } 2036 if that1 == nil { 2037 return this == nil 2038 } else if this == nil { 2039 return false 2040 } 2041 if that1.TestOneof == nil { 2042 if this.TestOneof != nil { 2043 return false 2044 } 2045 } else if this.TestOneof == nil { 2046 return false 2047 } else if !this.TestOneof.Equal(that1.TestOneof) { 2048 return false 2049 } 2050 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 2051 return false 2052 } 2053 return true 2054} 2055func (this *AllTypesOneOf_Field1) Equal(that interface{}) bool { 2056 if that == nil { 2057 return this == nil 2058 } 2059 2060 that1, ok := that.(*AllTypesOneOf_Field1) 2061 if !ok { 2062 that2, ok := that.(AllTypesOneOf_Field1) 2063 if ok { 2064 that1 = &that2 2065 } else { 2066 return false 2067 } 2068 } 2069 if that1 == nil { 2070 return this == nil 2071 } else if this == nil { 2072 return false 2073 } 2074 if this.Field1 != that1.Field1 { 2075 return false 2076 } 2077 return true 2078} 2079func (this *AllTypesOneOf_Field2) Equal(that interface{}) bool { 2080 if that == nil { 2081 return this == nil 2082 } 2083 2084 that1, ok := that.(*AllTypesOneOf_Field2) 2085 if !ok { 2086 that2, ok := that.(AllTypesOneOf_Field2) 2087 if ok { 2088 that1 = &that2 2089 } else { 2090 return false 2091 } 2092 } 2093 if that1 == nil { 2094 return this == nil 2095 } else if this == nil { 2096 return false 2097 } 2098 if this.Field2 != that1.Field2 { 2099 return false 2100 } 2101 return true 2102} 2103func (this *AllTypesOneOf_Field3) Equal(that interface{}) bool { 2104 if that == nil { 2105 return this == nil 2106 } 2107 2108 that1, ok := that.(*AllTypesOneOf_Field3) 2109 if !ok { 2110 that2, ok := that.(AllTypesOneOf_Field3) 2111 if ok { 2112 that1 = &that2 2113 } else { 2114 return false 2115 } 2116 } 2117 if that1 == nil { 2118 return this == nil 2119 } else if this == nil { 2120 return false 2121 } 2122 if this.Field3 != that1.Field3 { 2123 return false 2124 } 2125 return true 2126} 2127func (this *AllTypesOneOf_Field4) Equal(that interface{}) bool { 2128 if that == nil { 2129 return this == nil 2130 } 2131 2132 that1, ok := that.(*AllTypesOneOf_Field4) 2133 if !ok { 2134 that2, ok := that.(AllTypesOneOf_Field4) 2135 if ok { 2136 that1 = &that2 2137 } else { 2138 return false 2139 } 2140 } 2141 if that1 == nil { 2142 return this == nil 2143 } else if this == nil { 2144 return false 2145 } 2146 if this.Field4 != that1.Field4 { 2147 return false 2148 } 2149 return true 2150} 2151func (this *AllTypesOneOf_Field5) Equal(that interface{}) bool { 2152 if that == nil { 2153 return this == nil 2154 } 2155 2156 that1, ok := that.(*AllTypesOneOf_Field5) 2157 if !ok { 2158 that2, ok := that.(AllTypesOneOf_Field5) 2159 if ok { 2160 that1 = &that2 2161 } else { 2162 return false 2163 } 2164 } 2165 if that1 == nil { 2166 return this == nil 2167 } else if this == nil { 2168 return false 2169 } 2170 if this.Field5 != that1.Field5 { 2171 return false 2172 } 2173 return true 2174} 2175func (this *AllTypesOneOf_Field6) Equal(that interface{}) bool { 2176 if that == nil { 2177 return this == nil 2178 } 2179 2180 that1, ok := that.(*AllTypesOneOf_Field6) 2181 if !ok { 2182 that2, ok := that.(AllTypesOneOf_Field6) 2183 if ok { 2184 that1 = &that2 2185 } else { 2186 return false 2187 } 2188 } 2189 if that1 == nil { 2190 return this == nil 2191 } else if this == nil { 2192 return false 2193 } 2194 if this.Field6 != that1.Field6 { 2195 return false 2196 } 2197 return true 2198} 2199func (this *AllTypesOneOf_Field7) Equal(that interface{}) bool { 2200 if that == nil { 2201 return this == nil 2202 } 2203 2204 that1, ok := that.(*AllTypesOneOf_Field7) 2205 if !ok { 2206 that2, ok := that.(AllTypesOneOf_Field7) 2207 if ok { 2208 that1 = &that2 2209 } else { 2210 return false 2211 } 2212 } 2213 if that1 == nil { 2214 return this == nil 2215 } else if this == nil { 2216 return false 2217 } 2218 if this.Field7 != that1.Field7 { 2219 return false 2220 } 2221 return true 2222} 2223func (this *AllTypesOneOf_Field8) Equal(that interface{}) bool { 2224 if that == nil { 2225 return this == nil 2226 } 2227 2228 that1, ok := that.(*AllTypesOneOf_Field8) 2229 if !ok { 2230 that2, ok := that.(AllTypesOneOf_Field8) 2231 if ok { 2232 that1 = &that2 2233 } else { 2234 return false 2235 } 2236 } 2237 if that1 == nil { 2238 return this == nil 2239 } else if this == nil { 2240 return false 2241 } 2242 if this.Field8 != that1.Field8 { 2243 return false 2244 } 2245 return true 2246} 2247func (this *AllTypesOneOf_Field9) Equal(that interface{}) bool { 2248 if that == nil { 2249 return this == nil 2250 } 2251 2252 that1, ok := that.(*AllTypesOneOf_Field9) 2253 if !ok { 2254 that2, ok := that.(AllTypesOneOf_Field9) 2255 if ok { 2256 that1 = &that2 2257 } else { 2258 return false 2259 } 2260 } 2261 if that1 == nil { 2262 return this == nil 2263 } else if this == nil { 2264 return false 2265 } 2266 if this.Field9 != that1.Field9 { 2267 return false 2268 } 2269 return true 2270} 2271func (this *AllTypesOneOf_Field10) Equal(that interface{}) bool { 2272 if that == nil { 2273 return this == nil 2274 } 2275 2276 that1, ok := that.(*AllTypesOneOf_Field10) 2277 if !ok { 2278 that2, ok := that.(AllTypesOneOf_Field10) 2279 if ok { 2280 that1 = &that2 2281 } else { 2282 return false 2283 } 2284 } 2285 if that1 == nil { 2286 return this == nil 2287 } else if this == nil { 2288 return false 2289 } 2290 if this.Field10 != that1.Field10 { 2291 return false 2292 } 2293 return true 2294} 2295func (this *AllTypesOneOf_Field11) Equal(that interface{}) bool { 2296 if that == nil { 2297 return this == nil 2298 } 2299 2300 that1, ok := that.(*AllTypesOneOf_Field11) 2301 if !ok { 2302 that2, ok := that.(AllTypesOneOf_Field11) 2303 if ok { 2304 that1 = &that2 2305 } else { 2306 return false 2307 } 2308 } 2309 if that1 == nil { 2310 return this == nil 2311 } else if this == nil { 2312 return false 2313 } 2314 if this.Field11 != that1.Field11 { 2315 return false 2316 } 2317 return true 2318} 2319func (this *AllTypesOneOf_Field12) Equal(that interface{}) bool { 2320 if that == nil { 2321 return this == nil 2322 } 2323 2324 that1, ok := that.(*AllTypesOneOf_Field12) 2325 if !ok { 2326 that2, ok := that.(AllTypesOneOf_Field12) 2327 if ok { 2328 that1 = &that2 2329 } else { 2330 return false 2331 } 2332 } 2333 if that1 == nil { 2334 return this == nil 2335 } else if this == nil { 2336 return false 2337 } 2338 if this.Field12 != that1.Field12 { 2339 return false 2340 } 2341 return true 2342} 2343func (this *AllTypesOneOf_Field13) Equal(that interface{}) bool { 2344 if that == nil { 2345 return this == nil 2346 } 2347 2348 that1, ok := that.(*AllTypesOneOf_Field13) 2349 if !ok { 2350 that2, ok := that.(AllTypesOneOf_Field13) 2351 if ok { 2352 that1 = &that2 2353 } else { 2354 return false 2355 } 2356 } 2357 if that1 == nil { 2358 return this == nil 2359 } else if this == nil { 2360 return false 2361 } 2362 if this.Field13 != that1.Field13 { 2363 return false 2364 } 2365 return true 2366} 2367func (this *AllTypesOneOf_Field14) Equal(that interface{}) bool { 2368 if that == nil { 2369 return this == nil 2370 } 2371 2372 that1, ok := that.(*AllTypesOneOf_Field14) 2373 if !ok { 2374 that2, ok := that.(AllTypesOneOf_Field14) 2375 if ok { 2376 that1 = &that2 2377 } else { 2378 return false 2379 } 2380 } 2381 if that1 == nil { 2382 return this == nil 2383 } else if this == nil { 2384 return false 2385 } 2386 if this.Field14 != that1.Field14 { 2387 return false 2388 } 2389 return true 2390} 2391func (this *AllTypesOneOf_Field15) Equal(that interface{}) bool { 2392 if that == nil { 2393 return this == nil 2394 } 2395 2396 that1, ok := that.(*AllTypesOneOf_Field15) 2397 if !ok { 2398 that2, ok := that.(AllTypesOneOf_Field15) 2399 if ok { 2400 that1 = &that2 2401 } else { 2402 return false 2403 } 2404 } 2405 if that1 == nil { 2406 return this == nil 2407 } else if this == nil { 2408 return false 2409 } 2410 if !bytes.Equal(this.Field15, that1.Field15) { 2411 return false 2412 } 2413 return true 2414} 2415func (this *AllTypesOneOf_SubMessage) Equal(that interface{}) bool { 2416 if that == nil { 2417 return this == nil 2418 } 2419 2420 that1, ok := that.(*AllTypesOneOf_SubMessage) 2421 if !ok { 2422 that2, ok := that.(AllTypesOneOf_SubMessage) 2423 if ok { 2424 that1 = &that2 2425 } else { 2426 return false 2427 } 2428 } 2429 if that1 == nil { 2430 return this == nil 2431 } else if this == nil { 2432 return false 2433 } 2434 if !this.SubMessage.Equal(that1.SubMessage) { 2435 return false 2436 } 2437 return true 2438} 2439func (this *TwoOneofs) VerboseEqual(that interface{}) error { 2440 if that == nil { 2441 if this == nil { 2442 return nil 2443 } 2444 return fmt.Errorf("that == nil && this != nil") 2445 } 2446 2447 that1, ok := that.(*TwoOneofs) 2448 if !ok { 2449 that2, ok := that.(TwoOneofs) 2450 if ok { 2451 that1 = &that2 2452 } else { 2453 return fmt.Errorf("that is not of type *TwoOneofs") 2454 } 2455 } 2456 if that1 == nil { 2457 if this == nil { 2458 return nil 2459 } 2460 return fmt.Errorf("that is type *TwoOneofs but is nil && this != nil") 2461 } else if this == nil { 2462 return fmt.Errorf("that is type *TwoOneofs but is not nil && this == nil") 2463 } 2464 if that1.One == nil { 2465 if this.One != nil { 2466 return fmt.Errorf("this.One != nil && that1.One == nil") 2467 } 2468 } else if this.One == nil { 2469 return fmt.Errorf("this.One == nil && that1.One != nil") 2470 } else if err := this.One.VerboseEqual(that1.One); err != nil { 2471 return err 2472 } 2473 if that1.Two == nil { 2474 if this.Two != nil { 2475 return fmt.Errorf("this.Two != nil && that1.Two == nil") 2476 } 2477 } else if this.Two == nil { 2478 return fmt.Errorf("this.Two == nil && that1.Two != nil") 2479 } else if err := this.Two.VerboseEqual(that1.Two); err != nil { 2480 return err 2481 } 2482 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 2483 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) 2484 } 2485 return nil 2486} 2487func (this *TwoOneofs_Field1) VerboseEqual(that interface{}) error { 2488 if that == nil { 2489 if this == nil { 2490 return nil 2491 } 2492 return fmt.Errorf("that == nil && this != nil") 2493 } 2494 2495 that1, ok := that.(*TwoOneofs_Field1) 2496 if !ok { 2497 that2, ok := that.(TwoOneofs_Field1) 2498 if ok { 2499 that1 = &that2 2500 } else { 2501 return fmt.Errorf("that is not of type *TwoOneofs_Field1") 2502 } 2503 } 2504 if that1 == nil { 2505 if this == nil { 2506 return nil 2507 } 2508 return fmt.Errorf("that is type *TwoOneofs_Field1 but is nil && this != nil") 2509 } else if this == nil { 2510 return fmt.Errorf("that is type *TwoOneofs_Field1 but is not nil && this == nil") 2511 } 2512 if this.Field1 != that1.Field1 { 2513 return fmt.Errorf("Field1 this(%v) Not Equal that(%v)", this.Field1, that1.Field1) 2514 } 2515 return nil 2516} 2517func (this *TwoOneofs_Field2) VerboseEqual(that interface{}) error { 2518 if that == nil { 2519 if this == nil { 2520 return nil 2521 } 2522 return fmt.Errorf("that == nil && this != nil") 2523 } 2524 2525 that1, ok := that.(*TwoOneofs_Field2) 2526 if !ok { 2527 that2, ok := that.(TwoOneofs_Field2) 2528 if ok { 2529 that1 = &that2 2530 } else { 2531 return fmt.Errorf("that is not of type *TwoOneofs_Field2") 2532 } 2533 } 2534 if that1 == nil { 2535 if this == nil { 2536 return nil 2537 } 2538 return fmt.Errorf("that is type *TwoOneofs_Field2 but is nil && this != nil") 2539 } else if this == nil { 2540 return fmt.Errorf("that is type *TwoOneofs_Field2 but is not nil && this == nil") 2541 } 2542 if this.Field2 != that1.Field2 { 2543 return fmt.Errorf("Field2 this(%v) Not Equal that(%v)", this.Field2, that1.Field2) 2544 } 2545 return nil 2546} 2547func (this *TwoOneofs_Field3) VerboseEqual(that interface{}) error { 2548 if that == nil { 2549 if this == nil { 2550 return nil 2551 } 2552 return fmt.Errorf("that == nil && this != nil") 2553 } 2554 2555 that1, ok := that.(*TwoOneofs_Field3) 2556 if !ok { 2557 that2, ok := that.(TwoOneofs_Field3) 2558 if ok { 2559 that1 = &that2 2560 } else { 2561 return fmt.Errorf("that is not of type *TwoOneofs_Field3") 2562 } 2563 } 2564 if that1 == nil { 2565 if this == nil { 2566 return nil 2567 } 2568 return fmt.Errorf("that is type *TwoOneofs_Field3 but is nil && this != nil") 2569 } else if this == nil { 2570 return fmt.Errorf("that is type *TwoOneofs_Field3 but is not nil && this == nil") 2571 } 2572 if this.Field3 != that1.Field3 { 2573 return fmt.Errorf("Field3 this(%v) Not Equal that(%v)", this.Field3, that1.Field3) 2574 } 2575 return nil 2576} 2577func (this *TwoOneofs_Field34) VerboseEqual(that interface{}) error { 2578 if that == nil { 2579 if this == nil { 2580 return nil 2581 } 2582 return fmt.Errorf("that == nil && this != nil") 2583 } 2584 2585 that1, ok := that.(*TwoOneofs_Field34) 2586 if !ok { 2587 that2, ok := that.(TwoOneofs_Field34) 2588 if ok { 2589 that1 = &that2 2590 } else { 2591 return fmt.Errorf("that is not of type *TwoOneofs_Field34") 2592 } 2593 } 2594 if that1 == nil { 2595 if this == nil { 2596 return nil 2597 } 2598 return fmt.Errorf("that is type *TwoOneofs_Field34 but is nil && this != nil") 2599 } else if this == nil { 2600 return fmt.Errorf("that is type *TwoOneofs_Field34 but is not nil && this == nil") 2601 } 2602 if this.Field34 != that1.Field34 { 2603 return fmt.Errorf("Field34 this(%v) Not Equal that(%v)", this.Field34, that1.Field34) 2604 } 2605 return nil 2606} 2607func (this *TwoOneofs_Field35) VerboseEqual(that interface{}) error { 2608 if that == nil { 2609 if this == nil { 2610 return nil 2611 } 2612 return fmt.Errorf("that == nil && this != nil") 2613 } 2614 2615 that1, ok := that.(*TwoOneofs_Field35) 2616 if !ok { 2617 that2, ok := that.(TwoOneofs_Field35) 2618 if ok { 2619 that1 = &that2 2620 } else { 2621 return fmt.Errorf("that is not of type *TwoOneofs_Field35") 2622 } 2623 } 2624 if that1 == nil { 2625 if this == nil { 2626 return nil 2627 } 2628 return fmt.Errorf("that is type *TwoOneofs_Field35 but is nil && this != nil") 2629 } else if this == nil { 2630 return fmt.Errorf("that is type *TwoOneofs_Field35 but is not nil && this == nil") 2631 } 2632 if !bytes.Equal(this.Field35, that1.Field35) { 2633 return fmt.Errorf("Field35 this(%v) Not Equal that(%v)", this.Field35, that1.Field35) 2634 } 2635 return nil 2636} 2637func (this *TwoOneofs_SubMessage2) VerboseEqual(that interface{}) error { 2638 if that == nil { 2639 if this == nil { 2640 return nil 2641 } 2642 return fmt.Errorf("that == nil && this != nil") 2643 } 2644 2645 that1, ok := that.(*TwoOneofs_SubMessage2) 2646 if !ok { 2647 that2, ok := that.(TwoOneofs_SubMessage2) 2648 if ok { 2649 that1 = &that2 2650 } else { 2651 return fmt.Errorf("that is not of type *TwoOneofs_SubMessage2") 2652 } 2653 } 2654 if that1 == nil { 2655 if this == nil { 2656 return nil 2657 } 2658 return fmt.Errorf("that is type *TwoOneofs_SubMessage2 but is nil && this != nil") 2659 } else if this == nil { 2660 return fmt.Errorf("that is type *TwoOneofs_SubMessage2 but is not nil && this == nil") 2661 } 2662 if !this.SubMessage2.Equal(that1.SubMessage2) { 2663 return fmt.Errorf("SubMessage2 this(%v) Not Equal that(%v)", this.SubMessage2, that1.SubMessage2) 2664 } 2665 return nil 2666} 2667func (this *TwoOneofs) Equal(that interface{}) bool { 2668 if that == nil { 2669 return this == nil 2670 } 2671 2672 that1, ok := that.(*TwoOneofs) 2673 if !ok { 2674 that2, ok := that.(TwoOneofs) 2675 if ok { 2676 that1 = &that2 2677 } else { 2678 return false 2679 } 2680 } 2681 if that1 == nil { 2682 return this == nil 2683 } else if this == nil { 2684 return false 2685 } 2686 if that1.One == nil { 2687 if this.One != nil { 2688 return false 2689 } 2690 } else if this.One == nil { 2691 return false 2692 } else if !this.One.Equal(that1.One) { 2693 return false 2694 } 2695 if that1.Two == nil { 2696 if this.Two != nil { 2697 return false 2698 } 2699 } else if this.Two == nil { 2700 return false 2701 } else if !this.Two.Equal(that1.Two) { 2702 return false 2703 } 2704 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 2705 return false 2706 } 2707 return true 2708} 2709func (this *TwoOneofs_Field1) Equal(that interface{}) bool { 2710 if that == nil { 2711 return this == nil 2712 } 2713 2714 that1, ok := that.(*TwoOneofs_Field1) 2715 if !ok { 2716 that2, ok := that.(TwoOneofs_Field1) 2717 if ok { 2718 that1 = &that2 2719 } else { 2720 return false 2721 } 2722 } 2723 if that1 == nil { 2724 return this == nil 2725 } else if this == nil { 2726 return false 2727 } 2728 if this.Field1 != that1.Field1 { 2729 return false 2730 } 2731 return true 2732} 2733func (this *TwoOneofs_Field2) Equal(that interface{}) bool { 2734 if that == nil { 2735 return this == nil 2736 } 2737 2738 that1, ok := that.(*TwoOneofs_Field2) 2739 if !ok { 2740 that2, ok := that.(TwoOneofs_Field2) 2741 if ok { 2742 that1 = &that2 2743 } else { 2744 return false 2745 } 2746 } 2747 if that1 == nil { 2748 return this == nil 2749 } else if this == nil { 2750 return false 2751 } 2752 if this.Field2 != that1.Field2 { 2753 return false 2754 } 2755 return true 2756} 2757func (this *TwoOneofs_Field3) Equal(that interface{}) bool { 2758 if that == nil { 2759 return this == nil 2760 } 2761 2762 that1, ok := that.(*TwoOneofs_Field3) 2763 if !ok { 2764 that2, ok := that.(TwoOneofs_Field3) 2765 if ok { 2766 that1 = &that2 2767 } else { 2768 return false 2769 } 2770 } 2771 if that1 == nil { 2772 return this == nil 2773 } else if this == nil { 2774 return false 2775 } 2776 if this.Field3 != that1.Field3 { 2777 return false 2778 } 2779 return true 2780} 2781func (this *TwoOneofs_Field34) Equal(that interface{}) bool { 2782 if that == nil { 2783 return this == nil 2784 } 2785 2786 that1, ok := that.(*TwoOneofs_Field34) 2787 if !ok { 2788 that2, ok := that.(TwoOneofs_Field34) 2789 if ok { 2790 that1 = &that2 2791 } else { 2792 return false 2793 } 2794 } 2795 if that1 == nil { 2796 return this == nil 2797 } else if this == nil { 2798 return false 2799 } 2800 if this.Field34 != that1.Field34 { 2801 return false 2802 } 2803 return true 2804} 2805func (this *TwoOneofs_Field35) Equal(that interface{}) bool { 2806 if that == nil { 2807 return this == nil 2808 } 2809 2810 that1, ok := that.(*TwoOneofs_Field35) 2811 if !ok { 2812 that2, ok := that.(TwoOneofs_Field35) 2813 if ok { 2814 that1 = &that2 2815 } else { 2816 return false 2817 } 2818 } 2819 if that1 == nil { 2820 return this == nil 2821 } else if this == nil { 2822 return false 2823 } 2824 if !bytes.Equal(this.Field35, that1.Field35) { 2825 return false 2826 } 2827 return true 2828} 2829func (this *TwoOneofs_SubMessage2) Equal(that interface{}) bool { 2830 if that == nil { 2831 return this == nil 2832 } 2833 2834 that1, ok := that.(*TwoOneofs_SubMessage2) 2835 if !ok { 2836 that2, ok := that.(TwoOneofs_SubMessage2) 2837 if ok { 2838 that1 = &that2 2839 } else { 2840 return false 2841 } 2842 } 2843 if that1 == nil { 2844 return this == nil 2845 } else if this == nil { 2846 return false 2847 } 2848 if !this.SubMessage2.Equal(that1.SubMessage2) { 2849 return false 2850 } 2851 return true 2852} 2853func (this *CustomOneof) VerboseEqual(that interface{}) error { 2854 if that == nil { 2855 if this == nil { 2856 return nil 2857 } 2858 return fmt.Errorf("that == nil && this != nil") 2859 } 2860 2861 that1, ok := that.(*CustomOneof) 2862 if !ok { 2863 that2, ok := that.(CustomOneof) 2864 if ok { 2865 that1 = &that2 2866 } else { 2867 return fmt.Errorf("that is not of type *CustomOneof") 2868 } 2869 } 2870 if that1 == nil { 2871 if this == nil { 2872 return nil 2873 } 2874 return fmt.Errorf("that is type *CustomOneof but is nil && this != nil") 2875 } else if this == nil { 2876 return fmt.Errorf("that is type *CustomOneof but is not nil && this == nil") 2877 } 2878 if that1.Custom == nil { 2879 if this.Custom != nil { 2880 return fmt.Errorf("this.Custom != nil && that1.Custom == nil") 2881 } 2882 } else if this.Custom == nil { 2883 return fmt.Errorf("this.Custom == nil && that1.Custom != nil") 2884 } else if err := this.Custom.VerboseEqual(that1.Custom); err != nil { 2885 return err 2886 } 2887 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 2888 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized) 2889 } 2890 return nil 2891} 2892func (this *CustomOneof_Stringy) VerboseEqual(that interface{}) error { 2893 if that == nil { 2894 if this == nil { 2895 return nil 2896 } 2897 return fmt.Errorf("that == nil && this != nil") 2898 } 2899 2900 that1, ok := that.(*CustomOneof_Stringy) 2901 if !ok { 2902 that2, ok := that.(CustomOneof_Stringy) 2903 if ok { 2904 that1 = &that2 2905 } else { 2906 return fmt.Errorf("that is not of type *CustomOneof_Stringy") 2907 } 2908 } 2909 if that1 == nil { 2910 if this == nil { 2911 return nil 2912 } 2913 return fmt.Errorf("that is type *CustomOneof_Stringy but is nil && this != nil") 2914 } else if this == nil { 2915 return fmt.Errorf("that is type *CustomOneof_Stringy but is not nil && this == nil") 2916 } 2917 if this.Stringy != that1.Stringy { 2918 return fmt.Errorf("Stringy this(%v) Not Equal that(%v)", this.Stringy, that1.Stringy) 2919 } 2920 return nil 2921} 2922func (this *CustomOneof_CustomType) VerboseEqual(that interface{}) error { 2923 if that == nil { 2924 if this == nil { 2925 return nil 2926 } 2927 return fmt.Errorf("that == nil && this != nil") 2928 } 2929 2930 that1, ok := that.(*CustomOneof_CustomType) 2931 if !ok { 2932 that2, ok := that.(CustomOneof_CustomType) 2933 if ok { 2934 that1 = &that2 2935 } else { 2936 return fmt.Errorf("that is not of type *CustomOneof_CustomType") 2937 } 2938 } 2939 if that1 == nil { 2940 if this == nil { 2941 return nil 2942 } 2943 return fmt.Errorf("that is type *CustomOneof_CustomType but is nil && this != nil") 2944 } else if this == nil { 2945 return fmt.Errorf("that is type *CustomOneof_CustomType but is not nil && this == nil") 2946 } 2947 if !this.CustomType.Equal(that1.CustomType) { 2948 return fmt.Errorf("CustomType this(%v) Not Equal that(%v)", this.CustomType, that1.CustomType) 2949 } 2950 return nil 2951} 2952func (this *CustomOneof_CastType) VerboseEqual(that interface{}) error { 2953 if that == nil { 2954 if this == nil { 2955 return nil 2956 } 2957 return fmt.Errorf("that == nil && this != nil") 2958 } 2959 2960 that1, ok := that.(*CustomOneof_CastType) 2961 if !ok { 2962 that2, ok := that.(CustomOneof_CastType) 2963 if ok { 2964 that1 = &that2 2965 } else { 2966 return fmt.Errorf("that is not of type *CustomOneof_CastType") 2967 } 2968 } 2969 if that1 == nil { 2970 if this == nil { 2971 return nil 2972 } 2973 return fmt.Errorf("that is type *CustomOneof_CastType but is nil && this != nil") 2974 } else if this == nil { 2975 return fmt.Errorf("that is type *CustomOneof_CastType but is not nil && this == nil") 2976 } 2977 if this.CastType != that1.CastType { 2978 return fmt.Errorf("CastType this(%v) Not Equal that(%v)", this.CastType, that1.CastType) 2979 } 2980 return nil 2981} 2982func (this *CustomOneof_MyCustomName) VerboseEqual(that interface{}) error { 2983 if that == nil { 2984 if this == nil { 2985 return nil 2986 } 2987 return fmt.Errorf("that == nil && this != nil") 2988 } 2989 2990 that1, ok := that.(*CustomOneof_MyCustomName) 2991 if !ok { 2992 that2, ok := that.(CustomOneof_MyCustomName) 2993 if ok { 2994 that1 = &that2 2995 } else { 2996 return fmt.Errorf("that is not of type *CustomOneof_MyCustomName") 2997 } 2998 } 2999 if that1 == nil { 3000 if this == nil { 3001 return nil 3002 } 3003 return fmt.Errorf("that is type *CustomOneof_MyCustomName but is nil && this != nil") 3004 } else if this == nil { 3005 return fmt.Errorf("that is type *CustomOneof_MyCustomName but is not nil && this == nil") 3006 } 3007 if this.MyCustomName != that1.MyCustomName { 3008 return fmt.Errorf("MyCustomName this(%v) Not Equal that(%v)", this.MyCustomName, that1.MyCustomName) 3009 } 3010 return nil 3011} 3012func (this *CustomOneof) Equal(that interface{}) bool { 3013 if that == nil { 3014 return this == nil 3015 } 3016 3017 that1, ok := that.(*CustomOneof) 3018 if !ok { 3019 that2, ok := that.(CustomOneof) 3020 if ok { 3021 that1 = &that2 3022 } else { 3023 return false 3024 } 3025 } 3026 if that1 == nil { 3027 return this == nil 3028 } else if this == nil { 3029 return false 3030 } 3031 if that1.Custom == nil { 3032 if this.Custom != nil { 3033 return false 3034 } 3035 } else if this.Custom == nil { 3036 return false 3037 } else if !this.Custom.Equal(that1.Custom) { 3038 return false 3039 } 3040 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { 3041 return false 3042 } 3043 return true 3044} 3045func (this *CustomOneof_Stringy) Equal(that interface{}) bool { 3046 if that == nil { 3047 return this == nil 3048 } 3049 3050 that1, ok := that.(*CustomOneof_Stringy) 3051 if !ok { 3052 that2, ok := that.(CustomOneof_Stringy) 3053 if ok { 3054 that1 = &that2 3055 } else { 3056 return false 3057 } 3058 } 3059 if that1 == nil { 3060 return this == nil 3061 } else if this == nil { 3062 return false 3063 } 3064 if this.Stringy != that1.Stringy { 3065 return false 3066 } 3067 return true 3068} 3069func (this *CustomOneof_CustomType) Equal(that interface{}) bool { 3070 if that == nil { 3071 return this == nil 3072 } 3073 3074 that1, ok := that.(*CustomOneof_CustomType) 3075 if !ok { 3076 that2, ok := that.(CustomOneof_CustomType) 3077 if ok { 3078 that1 = &that2 3079 } else { 3080 return false 3081 } 3082 } 3083 if that1 == nil { 3084 return this == nil 3085 } else if this == nil { 3086 return false 3087 } 3088 if !this.CustomType.Equal(that1.CustomType) { 3089 return false 3090 } 3091 return true 3092} 3093func (this *CustomOneof_CastType) Equal(that interface{}) bool { 3094 if that == nil { 3095 return this == nil 3096 } 3097 3098 that1, ok := that.(*CustomOneof_CastType) 3099 if !ok { 3100 that2, ok := that.(CustomOneof_CastType) 3101 if ok { 3102 that1 = &that2 3103 } else { 3104 return false 3105 } 3106 } 3107 if that1 == nil { 3108 return this == nil 3109 } else if this == nil { 3110 return false 3111 } 3112 if this.CastType != that1.CastType { 3113 return false 3114 } 3115 return true 3116} 3117func (this *CustomOneof_MyCustomName) Equal(that interface{}) bool { 3118 if that == nil { 3119 return this == nil 3120 } 3121 3122 that1, ok := that.(*CustomOneof_MyCustomName) 3123 if !ok { 3124 that2, ok := that.(CustomOneof_MyCustomName) 3125 if ok { 3126 that1 = &that2 3127 } else { 3128 return false 3129 } 3130 } 3131 if that1 == nil { 3132 return this == nil 3133 } else if this == nil { 3134 return false 3135 } 3136 if this.MyCustomName != that1.MyCustomName { 3137 return false 3138 } 3139 return true 3140} 3141func (this *Subby) GoString() string { 3142 if this == nil { 3143 return "nil" 3144 } 3145 s := make([]string, 0, 5) 3146 s = append(s, "&one.Subby{") 3147 if this.Sub != nil { 3148 s = append(s, "Sub: "+valueToGoStringOne(this.Sub, "string")+",\n") 3149 } 3150 if this.XXX_unrecognized != nil { 3151 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") 3152 } 3153 s = append(s, "}") 3154 return strings.Join(s, "") 3155} 3156func (this *AllTypesOneOf) GoString() string { 3157 if this == nil { 3158 return "nil" 3159 } 3160 s := make([]string, 0, 20) 3161 s = append(s, "&one.AllTypesOneOf{") 3162 if this.TestOneof != nil { 3163 s = append(s, "TestOneof: "+fmt.Sprintf("%#v", this.TestOneof)+",\n") 3164 } 3165 if this.XXX_unrecognized != nil { 3166 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") 3167 } 3168 s = append(s, "}") 3169 return strings.Join(s, "") 3170} 3171func (this *AllTypesOneOf_Field1) GoString() string { 3172 if this == nil { 3173 return "nil" 3174 } 3175 s := strings.Join([]string{`&one.AllTypesOneOf_Field1{` + 3176 `Field1:` + fmt.Sprintf("%#v", this.Field1) + `}`}, ", ") 3177 return s 3178} 3179func (this *AllTypesOneOf_Field2) GoString() string { 3180 if this == nil { 3181 return "nil" 3182 } 3183 s := strings.Join([]string{`&one.AllTypesOneOf_Field2{` + 3184 `Field2:` + fmt.Sprintf("%#v", this.Field2) + `}`}, ", ") 3185 return s 3186} 3187func (this *AllTypesOneOf_Field3) GoString() string { 3188 if this == nil { 3189 return "nil" 3190 } 3191 s := strings.Join([]string{`&one.AllTypesOneOf_Field3{` + 3192 `Field3:` + fmt.Sprintf("%#v", this.Field3) + `}`}, ", ") 3193 return s 3194} 3195func (this *AllTypesOneOf_Field4) GoString() string { 3196 if this == nil { 3197 return "nil" 3198 } 3199 s := strings.Join([]string{`&one.AllTypesOneOf_Field4{` + 3200 `Field4:` + fmt.Sprintf("%#v", this.Field4) + `}`}, ", ") 3201 return s 3202} 3203func (this *AllTypesOneOf_Field5) GoString() string { 3204 if this == nil { 3205 return "nil" 3206 } 3207 s := strings.Join([]string{`&one.AllTypesOneOf_Field5{` + 3208 `Field5:` + fmt.Sprintf("%#v", this.Field5) + `}`}, ", ") 3209 return s 3210} 3211func (this *AllTypesOneOf_Field6) GoString() string { 3212 if this == nil { 3213 return "nil" 3214 } 3215 s := strings.Join([]string{`&one.AllTypesOneOf_Field6{` + 3216 `Field6:` + fmt.Sprintf("%#v", this.Field6) + `}`}, ", ") 3217 return s 3218} 3219func (this *AllTypesOneOf_Field7) GoString() string { 3220 if this == nil { 3221 return "nil" 3222 } 3223 s := strings.Join([]string{`&one.AllTypesOneOf_Field7{` + 3224 `Field7:` + fmt.Sprintf("%#v", this.Field7) + `}`}, ", ") 3225 return s 3226} 3227func (this *AllTypesOneOf_Field8) GoString() string { 3228 if this == nil { 3229 return "nil" 3230 } 3231 s := strings.Join([]string{`&one.AllTypesOneOf_Field8{` + 3232 `Field8:` + fmt.Sprintf("%#v", this.Field8) + `}`}, ", ") 3233 return s 3234} 3235func (this *AllTypesOneOf_Field9) GoString() string { 3236 if this == nil { 3237 return "nil" 3238 } 3239 s := strings.Join([]string{`&one.AllTypesOneOf_Field9{` + 3240 `Field9:` + fmt.Sprintf("%#v", this.Field9) + `}`}, ", ") 3241 return s 3242} 3243func (this *AllTypesOneOf_Field10) GoString() string { 3244 if this == nil { 3245 return "nil" 3246 } 3247 s := strings.Join([]string{`&one.AllTypesOneOf_Field10{` + 3248 `Field10:` + fmt.Sprintf("%#v", this.Field10) + `}`}, ", ") 3249 return s 3250} 3251func (this *AllTypesOneOf_Field11) GoString() string { 3252 if this == nil { 3253 return "nil" 3254 } 3255 s := strings.Join([]string{`&one.AllTypesOneOf_Field11{` + 3256 `Field11:` + fmt.Sprintf("%#v", this.Field11) + `}`}, ", ") 3257 return s 3258} 3259func (this *AllTypesOneOf_Field12) GoString() string { 3260 if this == nil { 3261 return "nil" 3262 } 3263 s := strings.Join([]string{`&one.AllTypesOneOf_Field12{` + 3264 `Field12:` + fmt.Sprintf("%#v", this.Field12) + `}`}, ", ") 3265 return s 3266} 3267func (this *AllTypesOneOf_Field13) GoString() string { 3268 if this == nil { 3269 return "nil" 3270 } 3271 s := strings.Join([]string{`&one.AllTypesOneOf_Field13{` + 3272 `Field13:` + fmt.Sprintf("%#v", this.Field13) + `}`}, ", ") 3273 return s 3274} 3275func (this *AllTypesOneOf_Field14) GoString() string { 3276 if this == nil { 3277 return "nil" 3278 } 3279 s := strings.Join([]string{`&one.AllTypesOneOf_Field14{` + 3280 `Field14:` + fmt.Sprintf("%#v", this.Field14) + `}`}, ", ") 3281 return s 3282} 3283func (this *AllTypesOneOf_Field15) GoString() string { 3284 if this == nil { 3285 return "nil" 3286 } 3287 s := strings.Join([]string{`&one.AllTypesOneOf_Field15{` + 3288 `Field15:` + fmt.Sprintf("%#v", this.Field15) + `}`}, ", ") 3289 return s 3290} 3291func (this *AllTypesOneOf_SubMessage) GoString() string { 3292 if this == nil { 3293 return "nil" 3294 } 3295 s := strings.Join([]string{`&one.AllTypesOneOf_SubMessage{` + 3296 `SubMessage:` + fmt.Sprintf("%#v", this.SubMessage) + `}`}, ", ") 3297 return s 3298} 3299func (this *TwoOneofs) GoString() string { 3300 if this == nil { 3301 return "nil" 3302 } 3303 s := make([]string, 0, 10) 3304 s = append(s, "&one.TwoOneofs{") 3305 if this.One != nil { 3306 s = append(s, "One: "+fmt.Sprintf("%#v", this.One)+",\n") 3307 } 3308 if this.Two != nil { 3309 s = append(s, "Two: "+fmt.Sprintf("%#v", this.Two)+",\n") 3310 } 3311 if this.XXX_unrecognized != nil { 3312 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") 3313 } 3314 s = append(s, "}") 3315 return strings.Join(s, "") 3316} 3317func (this *TwoOneofs_Field1) GoString() string { 3318 if this == nil { 3319 return "nil" 3320 } 3321 s := strings.Join([]string{`&one.TwoOneofs_Field1{` + 3322 `Field1:` + fmt.Sprintf("%#v", this.Field1) + `}`}, ", ") 3323 return s 3324} 3325func (this *TwoOneofs_Field2) GoString() string { 3326 if this == nil { 3327 return "nil" 3328 } 3329 s := strings.Join([]string{`&one.TwoOneofs_Field2{` + 3330 `Field2:` + fmt.Sprintf("%#v", this.Field2) + `}`}, ", ") 3331 return s 3332} 3333func (this *TwoOneofs_Field3) GoString() string { 3334 if this == nil { 3335 return "nil" 3336 } 3337 s := strings.Join([]string{`&one.TwoOneofs_Field3{` + 3338 `Field3:` + fmt.Sprintf("%#v", this.Field3) + `}`}, ", ") 3339 return s 3340} 3341func (this *TwoOneofs_Field34) GoString() string { 3342 if this == nil { 3343 return "nil" 3344 } 3345 s := strings.Join([]string{`&one.TwoOneofs_Field34{` + 3346 `Field34:` + fmt.Sprintf("%#v", this.Field34) + `}`}, ", ") 3347 return s 3348} 3349func (this *TwoOneofs_Field35) GoString() string { 3350 if this == nil { 3351 return "nil" 3352 } 3353 s := strings.Join([]string{`&one.TwoOneofs_Field35{` + 3354 `Field35:` + fmt.Sprintf("%#v", this.Field35) + `}`}, ", ") 3355 return s 3356} 3357func (this *TwoOneofs_SubMessage2) GoString() string { 3358 if this == nil { 3359 return "nil" 3360 } 3361 s := strings.Join([]string{`&one.TwoOneofs_SubMessage2{` + 3362 `SubMessage2:` + fmt.Sprintf("%#v", this.SubMessage2) + `}`}, ", ") 3363 return s 3364} 3365func (this *CustomOneof) GoString() string { 3366 if this == nil { 3367 return "nil" 3368 } 3369 s := make([]string, 0, 8) 3370 s = append(s, "&one.CustomOneof{") 3371 if this.Custom != nil { 3372 s = append(s, "Custom: "+fmt.Sprintf("%#v", this.Custom)+",\n") 3373 } 3374 if this.XXX_unrecognized != nil { 3375 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") 3376 } 3377 s = append(s, "}") 3378 return strings.Join(s, "") 3379} 3380func (this *CustomOneof_Stringy) GoString() string { 3381 if this == nil { 3382 return "nil" 3383 } 3384 s := strings.Join([]string{`&one.CustomOneof_Stringy{` + 3385 `Stringy:` + fmt.Sprintf("%#v", this.Stringy) + `}`}, ", ") 3386 return s 3387} 3388func (this *CustomOneof_CustomType) GoString() string { 3389 if this == nil { 3390 return "nil" 3391 } 3392 s := strings.Join([]string{`&one.CustomOneof_CustomType{` + 3393 `CustomType:` + fmt.Sprintf("%#v", this.CustomType) + `}`}, ", ") 3394 return s 3395} 3396func (this *CustomOneof_CastType) GoString() string { 3397 if this == nil { 3398 return "nil" 3399 } 3400 s := strings.Join([]string{`&one.CustomOneof_CastType{` + 3401 `CastType:` + fmt.Sprintf("%#v", this.CastType) + `}`}, ", ") 3402 return s 3403} 3404func (this *CustomOneof_MyCustomName) GoString() string { 3405 if this == nil { 3406 return "nil" 3407 } 3408 s := strings.Join([]string{`&one.CustomOneof_MyCustomName{` + 3409 `MyCustomName:` + fmt.Sprintf("%#v", this.MyCustomName) + `}`}, ", ") 3410 return s 3411} 3412func valueToGoStringOne(v interface{}, typ string) string { 3413 rv := reflect.ValueOf(v) 3414 if rv.IsNil() { 3415 return "nil" 3416 } 3417 pv := reflect.Indirect(rv).Interface() 3418 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) 3419} 3420func (m *Subby) Marshal() (dAtA []byte, err error) { 3421 size := m.Size() 3422 dAtA = make([]byte, size) 3423 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3424 if err != nil { 3425 return nil, err 3426 } 3427 return dAtA[:n], nil 3428} 3429 3430func (m *Subby) MarshalTo(dAtA []byte) (int, error) { 3431 size := m.Size() 3432 return m.MarshalToSizedBuffer(dAtA[:size]) 3433} 3434 3435func (m *Subby) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3436 i := len(dAtA) 3437 _ = i 3438 var l int 3439 _ = l 3440 if m.XXX_unrecognized != nil { 3441 i -= len(m.XXX_unrecognized) 3442 copy(dAtA[i:], m.XXX_unrecognized) 3443 } 3444 if m.Sub != nil { 3445 i -= len(*m.Sub) 3446 copy(dAtA[i:], *m.Sub) 3447 i = encodeVarintOne(dAtA, i, uint64(len(*m.Sub))) 3448 i-- 3449 dAtA[i] = 0xa 3450 } 3451 return len(dAtA) - i, nil 3452} 3453 3454func (m *AllTypesOneOf) Marshal() (dAtA []byte, err error) { 3455 size := m.Size() 3456 dAtA = make([]byte, size) 3457 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3458 if err != nil { 3459 return nil, err 3460 } 3461 return dAtA[:n], nil 3462} 3463 3464func (m *AllTypesOneOf) MarshalTo(dAtA []byte) (int, error) { 3465 size := m.Size() 3466 return m.MarshalToSizedBuffer(dAtA[:size]) 3467} 3468 3469func (m *AllTypesOneOf) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3470 i := len(dAtA) 3471 _ = i 3472 var l int 3473 _ = l 3474 if m.XXX_unrecognized != nil { 3475 i -= len(m.XXX_unrecognized) 3476 copy(dAtA[i:], m.XXX_unrecognized) 3477 } 3478 if m.TestOneof != nil { 3479 { 3480 size := m.TestOneof.Size() 3481 i -= size 3482 if _, err := m.TestOneof.MarshalTo(dAtA[i:]); err != nil { 3483 return 0, err 3484 } 3485 } 3486 } 3487 return len(dAtA) - i, nil 3488} 3489 3490func (m *AllTypesOneOf_Field1) MarshalTo(dAtA []byte) (int, error) { 3491 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3492} 3493 3494func (m *AllTypesOneOf_Field1) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3495 i := len(dAtA) 3496 i -= 8 3497 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Field1)))) 3498 i-- 3499 dAtA[i] = 0x9 3500 return len(dAtA) - i, nil 3501} 3502func (m *AllTypesOneOf_Field2) MarshalTo(dAtA []byte) (int, error) { 3503 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3504} 3505 3506func (m *AllTypesOneOf_Field2) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3507 i := len(dAtA) 3508 i -= 4 3509 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Field2)))) 3510 i-- 3511 dAtA[i] = 0x15 3512 return len(dAtA) - i, nil 3513} 3514func (m *AllTypesOneOf_Field3) MarshalTo(dAtA []byte) (int, error) { 3515 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3516} 3517 3518func (m *AllTypesOneOf_Field3) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3519 i := len(dAtA) 3520 i = encodeVarintOne(dAtA, i, uint64(m.Field3)) 3521 i-- 3522 dAtA[i] = 0x18 3523 return len(dAtA) - i, nil 3524} 3525func (m *AllTypesOneOf_Field4) MarshalTo(dAtA []byte) (int, error) { 3526 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3527} 3528 3529func (m *AllTypesOneOf_Field4) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3530 i := len(dAtA) 3531 i = encodeVarintOne(dAtA, i, uint64(m.Field4)) 3532 i-- 3533 dAtA[i] = 0x20 3534 return len(dAtA) - i, nil 3535} 3536func (m *AllTypesOneOf_Field5) MarshalTo(dAtA []byte) (int, error) { 3537 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3538} 3539 3540func (m *AllTypesOneOf_Field5) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3541 i := len(dAtA) 3542 i = encodeVarintOne(dAtA, i, uint64(m.Field5)) 3543 i-- 3544 dAtA[i] = 0x28 3545 return len(dAtA) - i, nil 3546} 3547func (m *AllTypesOneOf_Field6) MarshalTo(dAtA []byte) (int, error) { 3548 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3549} 3550 3551func (m *AllTypesOneOf_Field6) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3552 i := len(dAtA) 3553 i = encodeVarintOne(dAtA, i, uint64(m.Field6)) 3554 i-- 3555 dAtA[i] = 0x30 3556 return len(dAtA) - i, nil 3557} 3558func (m *AllTypesOneOf_Field7) MarshalTo(dAtA []byte) (int, error) { 3559 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3560} 3561 3562func (m *AllTypesOneOf_Field7) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3563 i := len(dAtA) 3564 i = encodeVarintOne(dAtA, i, uint64((uint32(m.Field7)<<1)^uint32((m.Field7>>31)))) 3565 i-- 3566 dAtA[i] = 0x38 3567 return len(dAtA) - i, nil 3568} 3569func (m *AllTypesOneOf_Field8) MarshalTo(dAtA []byte) (int, error) { 3570 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3571} 3572 3573func (m *AllTypesOneOf_Field8) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3574 i := len(dAtA) 3575 i = encodeVarintOne(dAtA, i, uint64((uint64(m.Field8)<<1)^uint64((m.Field8>>63)))) 3576 i-- 3577 dAtA[i] = 0x40 3578 return len(dAtA) - i, nil 3579} 3580func (m *AllTypesOneOf_Field9) MarshalTo(dAtA []byte) (int, error) { 3581 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3582} 3583 3584func (m *AllTypesOneOf_Field9) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3585 i := len(dAtA) 3586 i -= 4 3587 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Field9)) 3588 i-- 3589 dAtA[i] = 0x4d 3590 return len(dAtA) - i, nil 3591} 3592func (m *AllTypesOneOf_Field10) MarshalTo(dAtA []byte) (int, error) { 3593 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3594} 3595 3596func (m *AllTypesOneOf_Field10) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3597 i := len(dAtA) 3598 i -= 4 3599 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Field10)) 3600 i-- 3601 dAtA[i] = 0x55 3602 return len(dAtA) - i, nil 3603} 3604func (m *AllTypesOneOf_Field11) MarshalTo(dAtA []byte) (int, error) { 3605 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3606} 3607 3608func (m *AllTypesOneOf_Field11) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3609 i := len(dAtA) 3610 i -= 8 3611 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Field11)) 3612 i-- 3613 dAtA[i] = 0x59 3614 return len(dAtA) - i, nil 3615} 3616func (m *AllTypesOneOf_Field12) MarshalTo(dAtA []byte) (int, error) { 3617 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3618} 3619 3620func (m *AllTypesOneOf_Field12) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3621 i := len(dAtA) 3622 i -= 8 3623 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Field12)) 3624 i-- 3625 dAtA[i] = 0x61 3626 return len(dAtA) - i, nil 3627} 3628func (m *AllTypesOneOf_Field13) MarshalTo(dAtA []byte) (int, error) { 3629 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3630} 3631 3632func (m *AllTypesOneOf_Field13) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3633 i := len(dAtA) 3634 i-- 3635 if m.Field13 { 3636 dAtA[i] = 1 3637 } else { 3638 dAtA[i] = 0 3639 } 3640 i-- 3641 dAtA[i] = 0x68 3642 return len(dAtA) - i, nil 3643} 3644func (m *AllTypesOneOf_Field14) MarshalTo(dAtA []byte) (int, error) { 3645 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3646} 3647 3648func (m *AllTypesOneOf_Field14) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3649 i := len(dAtA) 3650 i -= len(m.Field14) 3651 copy(dAtA[i:], m.Field14) 3652 i = encodeVarintOne(dAtA, i, uint64(len(m.Field14))) 3653 i-- 3654 dAtA[i] = 0x72 3655 return len(dAtA) - i, nil 3656} 3657func (m *AllTypesOneOf_Field15) MarshalTo(dAtA []byte) (int, error) { 3658 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3659} 3660 3661func (m *AllTypesOneOf_Field15) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3662 i := len(dAtA) 3663 if m.Field15 != nil { 3664 i -= len(m.Field15) 3665 copy(dAtA[i:], m.Field15) 3666 i = encodeVarintOne(dAtA, i, uint64(len(m.Field15))) 3667 i-- 3668 dAtA[i] = 0x7a 3669 } 3670 return len(dAtA) - i, nil 3671} 3672func (m *AllTypesOneOf_SubMessage) MarshalTo(dAtA []byte) (int, error) { 3673 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3674} 3675 3676func (m *AllTypesOneOf_SubMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3677 i := len(dAtA) 3678 if m.SubMessage != nil { 3679 { 3680 size, err := m.SubMessage.MarshalToSizedBuffer(dAtA[:i]) 3681 if err != nil { 3682 return 0, err 3683 } 3684 i -= size 3685 i = encodeVarintOne(dAtA, i, uint64(size)) 3686 } 3687 i-- 3688 dAtA[i] = 0x1 3689 i-- 3690 dAtA[i] = 0x82 3691 } 3692 return len(dAtA) - i, nil 3693} 3694func (m *TwoOneofs) Marshal() (dAtA []byte, err error) { 3695 size := m.Size() 3696 dAtA = make([]byte, size) 3697 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3698 if err != nil { 3699 return nil, err 3700 } 3701 return dAtA[:n], nil 3702} 3703 3704func (m *TwoOneofs) MarshalTo(dAtA []byte) (int, error) { 3705 size := m.Size() 3706 return m.MarshalToSizedBuffer(dAtA[:size]) 3707} 3708 3709func (m *TwoOneofs) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3710 i := len(dAtA) 3711 _ = i 3712 var l int 3713 _ = l 3714 if m.XXX_unrecognized != nil { 3715 i -= len(m.XXX_unrecognized) 3716 copy(dAtA[i:], m.XXX_unrecognized) 3717 } 3718 if m.Two != nil { 3719 { 3720 size := m.Two.Size() 3721 i -= size 3722 if _, err := m.Two.MarshalTo(dAtA[i:]); err != nil { 3723 return 0, err 3724 } 3725 } 3726 } 3727 if m.One != nil { 3728 { 3729 size := m.One.Size() 3730 i -= size 3731 if _, err := m.One.MarshalTo(dAtA[i:]); err != nil { 3732 return 0, err 3733 } 3734 } 3735 } 3736 return len(dAtA) - i, nil 3737} 3738 3739func (m *TwoOneofs_Field1) MarshalTo(dAtA []byte) (int, error) { 3740 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3741} 3742 3743func (m *TwoOneofs_Field1) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3744 i := len(dAtA) 3745 i -= 8 3746 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Field1)))) 3747 i-- 3748 dAtA[i] = 0x9 3749 return len(dAtA) - i, nil 3750} 3751func (m *TwoOneofs_Field2) MarshalTo(dAtA []byte) (int, error) { 3752 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3753} 3754 3755func (m *TwoOneofs_Field2) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3756 i := len(dAtA) 3757 i -= 4 3758 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Field2)))) 3759 i-- 3760 dAtA[i] = 0x15 3761 return len(dAtA) - i, nil 3762} 3763func (m *TwoOneofs_Field3) MarshalTo(dAtA []byte) (int, error) { 3764 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3765} 3766 3767func (m *TwoOneofs_Field3) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3768 i := len(dAtA) 3769 i = encodeVarintOne(dAtA, i, uint64(m.Field3)) 3770 i-- 3771 dAtA[i] = 0x18 3772 return len(dAtA) - i, nil 3773} 3774func (m *TwoOneofs_Field34) MarshalTo(dAtA []byte) (int, error) { 3775 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3776} 3777 3778func (m *TwoOneofs_Field34) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3779 i := len(dAtA) 3780 i -= len(m.Field34) 3781 copy(dAtA[i:], m.Field34) 3782 i = encodeVarintOne(dAtA, i, uint64(len(m.Field34))) 3783 i-- 3784 dAtA[i] = 0x2 3785 i-- 3786 dAtA[i] = 0x92 3787 return len(dAtA) - i, nil 3788} 3789func (m *TwoOneofs_Field35) MarshalTo(dAtA []byte) (int, error) { 3790 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3791} 3792 3793func (m *TwoOneofs_Field35) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3794 i := len(dAtA) 3795 if m.Field35 != nil { 3796 i -= len(m.Field35) 3797 copy(dAtA[i:], m.Field35) 3798 i = encodeVarintOne(dAtA, i, uint64(len(m.Field35))) 3799 i-- 3800 dAtA[i] = 0x2 3801 i-- 3802 dAtA[i] = 0x9a 3803 } 3804 return len(dAtA) - i, nil 3805} 3806func (m *TwoOneofs_SubMessage2) MarshalTo(dAtA []byte) (int, error) { 3807 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3808} 3809 3810func (m *TwoOneofs_SubMessage2) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3811 i := len(dAtA) 3812 if m.SubMessage2 != nil { 3813 { 3814 size, err := m.SubMessage2.MarshalToSizedBuffer(dAtA[:i]) 3815 if err != nil { 3816 return 0, err 3817 } 3818 i -= size 3819 i = encodeVarintOne(dAtA, i, uint64(size)) 3820 } 3821 i-- 3822 dAtA[i] = 0x2 3823 i-- 3824 dAtA[i] = 0xa2 3825 } 3826 return len(dAtA) - i, nil 3827} 3828func (m *CustomOneof) Marshal() (dAtA []byte, err error) { 3829 size := m.Size() 3830 dAtA = make([]byte, size) 3831 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3832 if err != nil { 3833 return nil, err 3834 } 3835 return dAtA[:n], nil 3836} 3837 3838func (m *CustomOneof) MarshalTo(dAtA []byte) (int, error) { 3839 size := m.Size() 3840 return m.MarshalToSizedBuffer(dAtA[:size]) 3841} 3842 3843func (m *CustomOneof) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3844 i := len(dAtA) 3845 _ = i 3846 var l int 3847 _ = l 3848 if m.XXX_unrecognized != nil { 3849 i -= len(m.XXX_unrecognized) 3850 copy(dAtA[i:], m.XXX_unrecognized) 3851 } 3852 if m.Custom != nil { 3853 { 3854 size := m.Custom.Size() 3855 i -= size 3856 if _, err := m.Custom.MarshalTo(dAtA[i:]); err != nil { 3857 return 0, err 3858 } 3859 } 3860 } 3861 return len(dAtA) - i, nil 3862} 3863 3864func (m *CustomOneof_Stringy) MarshalTo(dAtA []byte) (int, error) { 3865 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3866} 3867 3868func (m *CustomOneof_Stringy) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3869 i := len(dAtA) 3870 i -= len(m.Stringy) 3871 copy(dAtA[i:], m.Stringy) 3872 i = encodeVarintOne(dAtA, i, uint64(len(m.Stringy))) 3873 i-- 3874 dAtA[i] = 0x2 3875 i-- 3876 dAtA[i] = 0x92 3877 return len(dAtA) - i, nil 3878} 3879func (m *CustomOneof_CustomType) MarshalTo(dAtA []byte) (int, error) { 3880 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3881} 3882 3883func (m *CustomOneof_CustomType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3884 i := len(dAtA) 3885 { 3886 size := m.CustomType.Size() 3887 i -= size 3888 if _, err := m.CustomType.MarshalTo(dAtA[i:]); err != nil { 3889 return 0, err 3890 } 3891 i = encodeVarintOne(dAtA, i, uint64(size)) 3892 } 3893 i-- 3894 dAtA[i] = 0x2 3895 i-- 3896 dAtA[i] = 0x9a 3897 return len(dAtA) - i, nil 3898} 3899func (m *CustomOneof_CastType) MarshalTo(dAtA []byte) (int, error) { 3900 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3901} 3902 3903func (m *CustomOneof_CastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3904 i := len(dAtA) 3905 i = encodeVarintOne(dAtA, i, uint64(m.CastType)) 3906 i-- 3907 dAtA[i] = 0x2 3908 i-- 3909 dAtA[i] = 0xa0 3910 return len(dAtA) - i, nil 3911} 3912func (m *CustomOneof_MyCustomName) MarshalTo(dAtA []byte) (int, error) { 3913 return m.MarshalToSizedBuffer(dAtA[:m.Size()]) 3914} 3915 3916func (m *CustomOneof_MyCustomName) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3917 i := len(dAtA) 3918 i = encodeVarintOne(dAtA, i, uint64(m.MyCustomName)) 3919 i-- 3920 dAtA[i] = 0x2 3921 i-- 3922 dAtA[i] = 0xa8 3923 return len(dAtA) - i, nil 3924} 3925func encodeVarintOne(dAtA []byte, offset int, v uint64) int { 3926 offset -= sovOne(v) 3927 base := offset 3928 for v >= 1<<7 { 3929 dAtA[offset] = uint8(v&0x7f | 0x80) 3930 v >>= 7 3931 offset++ 3932 } 3933 dAtA[offset] = uint8(v) 3934 return base 3935} 3936func NewPopulatedSubby(r randyOne, easy bool) *Subby { 3937 this := &Subby{} 3938 if r.Intn(5) != 0 { 3939 v1 := string(randStringOne(r)) 3940 this.Sub = &v1 3941 } 3942 if !easy && r.Intn(10) != 0 { 3943 this.XXX_unrecognized = randUnrecognizedOne(r, 2) 3944 } 3945 return this 3946} 3947 3948func NewPopulatedAllTypesOneOf(r randyOne, easy bool) *AllTypesOneOf { 3949 this := &AllTypesOneOf{} 3950 oneofNumber_TestOneof := []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}[r.Intn(16)] 3951 switch oneofNumber_TestOneof { 3952 case 1: 3953 this.TestOneof = NewPopulatedAllTypesOneOf_Field1(r, easy) 3954 case 2: 3955 this.TestOneof = NewPopulatedAllTypesOneOf_Field2(r, easy) 3956 case 3: 3957 this.TestOneof = NewPopulatedAllTypesOneOf_Field3(r, easy) 3958 case 4: 3959 this.TestOneof = NewPopulatedAllTypesOneOf_Field4(r, easy) 3960 case 5: 3961 this.TestOneof = NewPopulatedAllTypesOneOf_Field5(r, easy) 3962 case 6: 3963 this.TestOneof = NewPopulatedAllTypesOneOf_Field6(r, easy) 3964 case 7: 3965 this.TestOneof = NewPopulatedAllTypesOneOf_Field7(r, easy) 3966 case 8: 3967 this.TestOneof = NewPopulatedAllTypesOneOf_Field8(r, easy) 3968 case 9: 3969 this.TestOneof = NewPopulatedAllTypesOneOf_Field9(r, easy) 3970 case 10: 3971 this.TestOneof = NewPopulatedAllTypesOneOf_Field10(r, easy) 3972 case 11: 3973 this.TestOneof = NewPopulatedAllTypesOneOf_Field11(r, easy) 3974 case 12: 3975 this.TestOneof = NewPopulatedAllTypesOneOf_Field12(r, easy) 3976 case 13: 3977 this.TestOneof = NewPopulatedAllTypesOneOf_Field13(r, easy) 3978 case 14: 3979 this.TestOneof = NewPopulatedAllTypesOneOf_Field14(r, easy) 3980 case 15: 3981 this.TestOneof = NewPopulatedAllTypesOneOf_Field15(r, easy) 3982 case 16: 3983 this.TestOneof = NewPopulatedAllTypesOneOf_SubMessage(r, easy) 3984 } 3985 if !easy && r.Intn(10) != 0 { 3986 this.XXX_unrecognized = randUnrecognizedOne(r, 17) 3987 } 3988 return this 3989} 3990 3991func NewPopulatedAllTypesOneOf_Field1(r randyOne, easy bool) *AllTypesOneOf_Field1 { 3992 this := &AllTypesOneOf_Field1{} 3993 this.Field1 = float64(r.Float64()) 3994 if r.Intn(2) == 0 { 3995 this.Field1 *= -1 3996 } 3997 return this 3998} 3999func NewPopulatedAllTypesOneOf_Field2(r randyOne, easy bool) *AllTypesOneOf_Field2 { 4000 this := &AllTypesOneOf_Field2{} 4001 this.Field2 = float32(r.Float32()) 4002 if r.Intn(2) == 0 { 4003 this.Field2 *= -1 4004 } 4005 return this 4006} 4007func NewPopulatedAllTypesOneOf_Field3(r randyOne, easy bool) *AllTypesOneOf_Field3 { 4008 this := &AllTypesOneOf_Field3{} 4009 this.Field3 = int32(r.Int31()) 4010 if r.Intn(2) == 0 { 4011 this.Field3 *= -1 4012 } 4013 return this 4014} 4015func NewPopulatedAllTypesOneOf_Field4(r randyOne, easy bool) *AllTypesOneOf_Field4 { 4016 this := &AllTypesOneOf_Field4{} 4017 this.Field4 = int64(r.Int63()) 4018 if r.Intn(2) == 0 { 4019 this.Field4 *= -1 4020 } 4021 return this 4022} 4023func NewPopulatedAllTypesOneOf_Field5(r randyOne, easy bool) *AllTypesOneOf_Field5 { 4024 this := &AllTypesOneOf_Field5{} 4025 this.Field5 = uint32(r.Uint32()) 4026 return this 4027} 4028func NewPopulatedAllTypesOneOf_Field6(r randyOne, easy bool) *AllTypesOneOf_Field6 { 4029 this := &AllTypesOneOf_Field6{} 4030 this.Field6 = uint64(uint64(r.Uint32())) 4031 return this 4032} 4033func NewPopulatedAllTypesOneOf_Field7(r randyOne, easy bool) *AllTypesOneOf_Field7 { 4034 this := &AllTypesOneOf_Field7{} 4035 this.Field7 = int32(r.Int31()) 4036 if r.Intn(2) == 0 { 4037 this.Field7 *= -1 4038 } 4039 return this 4040} 4041func NewPopulatedAllTypesOneOf_Field8(r randyOne, easy bool) *AllTypesOneOf_Field8 { 4042 this := &AllTypesOneOf_Field8{} 4043 this.Field8 = int64(r.Int63()) 4044 if r.Intn(2) == 0 { 4045 this.Field8 *= -1 4046 } 4047 return this 4048} 4049func NewPopulatedAllTypesOneOf_Field9(r randyOne, easy bool) *AllTypesOneOf_Field9 { 4050 this := &AllTypesOneOf_Field9{} 4051 this.Field9 = uint32(r.Uint32()) 4052 return this 4053} 4054func NewPopulatedAllTypesOneOf_Field10(r randyOne, easy bool) *AllTypesOneOf_Field10 { 4055 this := &AllTypesOneOf_Field10{} 4056 this.Field10 = int32(r.Int31()) 4057 if r.Intn(2) == 0 { 4058 this.Field10 *= -1 4059 } 4060 return this 4061} 4062func NewPopulatedAllTypesOneOf_Field11(r randyOne, easy bool) *AllTypesOneOf_Field11 { 4063 this := &AllTypesOneOf_Field11{} 4064 this.Field11 = uint64(uint64(r.Uint32())) 4065 return this 4066} 4067func NewPopulatedAllTypesOneOf_Field12(r randyOne, easy bool) *AllTypesOneOf_Field12 { 4068 this := &AllTypesOneOf_Field12{} 4069 this.Field12 = int64(r.Int63()) 4070 if r.Intn(2) == 0 { 4071 this.Field12 *= -1 4072 } 4073 return this 4074} 4075func NewPopulatedAllTypesOneOf_Field13(r randyOne, easy bool) *AllTypesOneOf_Field13 { 4076 this := &AllTypesOneOf_Field13{} 4077 this.Field13 = bool(bool(r.Intn(2) == 0)) 4078 return this 4079} 4080func NewPopulatedAllTypesOneOf_Field14(r randyOne, easy bool) *AllTypesOneOf_Field14 { 4081 this := &AllTypesOneOf_Field14{} 4082 this.Field14 = string(randStringOne(r)) 4083 return this 4084} 4085func NewPopulatedAllTypesOneOf_Field15(r randyOne, easy bool) *AllTypesOneOf_Field15 { 4086 this := &AllTypesOneOf_Field15{} 4087 v2 := r.Intn(100) 4088 this.Field15 = make([]byte, v2) 4089 for i := 0; i < v2; i++ { 4090 this.Field15[i] = byte(r.Intn(256)) 4091 } 4092 return this 4093} 4094func NewPopulatedAllTypesOneOf_SubMessage(r randyOne, easy bool) *AllTypesOneOf_SubMessage { 4095 this := &AllTypesOneOf_SubMessage{} 4096 this.SubMessage = NewPopulatedSubby(r, easy) 4097 return this 4098} 4099func NewPopulatedTwoOneofs(r randyOne, easy bool) *TwoOneofs { 4100 this := &TwoOneofs{} 4101 oneofNumber_One := []int32{1, 2, 3}[r.Intn(3)] 4102 switch oneofNumber_One { 4103 case 1: 4104 this.One = NewPopulatedTwoOneofs_Field1(r, easy) 4105 case 2: 4106 this.One = NewPopulatedTwoOneofs_Field2(r, easy) 4107 case 3: 4108 this.One = NewPopulatedTwoOneofs_Field3(r, easy) 4109 } 4110 oneofNumber_Two := []int32{34, 35, 36}[r.Intn(3)] 4111 switch oneofNumber_Two { 4112 case 34: 4113 this.Two = NewPopulatedTwoOneofs_Field34(r, easy) 4114 case 35: 4115 this.Two = NewPopulatedTwoOneofs_Field35(r, easy) 4116 case 36: 4117 this.Two = NewPopulatedTwoOneofs_SubMessage2(r, easy) 4118 } 4119 if !easy && r.Intn(10) != 0 { 4120 this.XXX_unrecognized = randUnrecognizedOne(r, 37) 4121 } 4122 return this 4123} 4124 4125func NewPopulatedTwoOneofs_Field1(r randyOne, easy bool) *TwoOneofs_Field1 { 4126 this := &TwoOneofs_Field1{} 4127 this.Field1 = float64(r.Float64()) 4128 if r.Intn(2) == 0 { 4129 this.Field1 *= -1 4130 } 4131 return this 4132} 4133func NewPopulatedTwoOneofs_Field2(r randyOne, easy bool) *TwoOneofs_Field2 { 4134 this := &TwoOneofs_Field2{} 4135 this.Field2 = float32(r.Float32()) 4136 if r.Intn(2) == 0 { 4137 this.Field2 *= -1 4138 } 4139 return this 4140} 4141func NewPopulatedTwoOneofs_Field3(r randyOne, easy bool) *TwoOneofs_Field3 { 4142 this := &TwoOneofs_Field3{} 4143 this.Field3 = int32(r.Int31()) 4144 if r.Intn(2) == 0 { 4145 this.Field3 *= -1 4146 } 4147 return this 4148} 4149func NewPopulatedTwoOneofs_Field34(r randyOne, easy bool) *TwoOneofs_Field34 { 4150 this := &TwoOneofs_Field34{} 4151 this.Field34 = string(randStringOne(r)) 4152 return this 4153} 4154func NewPopulatedTwoOneofs_Field35(r randyOne, easy bool) *TwoOneofs_Field35 { 4155 this := &TwoOneofs_Field35{} 4156 v3 := r.Intn(100) 4157 this.Field35 = make([]byte, v3) 4158 for i := 0; i < v3; i++ { 4159 this.Field35[i] = byte(r.Intn(256)) 4160 } 4161 return this 4162} 4163func NewPopulatedTwoOneofs_SubMessage2(r randyOne, easy bool) *TwoOneofs_SubMessage2 { 4164 this := &TwoOneofs_SubMessage2{} 4165 this.SubMessage2 = NewPopulatedSubby(r, easy) 4166 return this 4167} 4168func NewPopulatedCustomOneof(r randyOne, easy bool) *CustomOneof { 4169 this := &CustomOneof{} 4170 oneofNumber_Custom := []int32{34, 35, 36, 37}[r.Intn(4)] 4171 switch oneofNumber_Custom { 4172 case 34: 4173 this.Custom = NewPopulatedCustomOneof_Stringy(r, easy) 4174 case 35: 4175 this.Custom = NewPopulatedCustomOneof_CustomType(r, easy) 4176 case 36: 4177 this.Custom = NewPopulatedCustomOneof_CastType(r, easy) 4178 case 37: 4179 this.Custom = NewPopulatedCustomOneof_MyCustomName(r, easy) 4180 } 4181 if !easy && r.Intn(10) != 0 { 4182 this.XXX_unrecognized = randUnrecognizedOne(r, 38) 4183 } 4184 return this 4185} 4186 4187func NewPopulatedCustomOneof_Stringy(r randyOne, easy bool) *CustomOneof_Stringy { 4188 this := &CustomOneof_Stringy{} 4189 this.Stringy = string(randStringOne(r)) 4190 return this 4191} 4192func NewPopulatedCustomOneof_CustomType(r randyOne, easy bool) *CustomOneof_CustomType { 4193 this := &CustomOneof_CustomType{} 4194 v4 := github_com_gogo_protobuf_test_custom.NewPopulatedUint128(r) 4195 this.CustomType = *v4 4196 return this 4197} 4198func NewPopulatedCustomOneof_CastType(r randyOne, easy bool) *CustomOneof_CastType { 4199 this := &CustomOneof_CastType{} 4200 this.CastType = github_com_gogo_protobuf_test_casttype.MyUint64Type(uint64(r.Uint32())) 4201 return this 4202} 4203func NewPopulatedCustomOneof_MyCustomName(r randyOne, easy bool) *CustomOneof_MyCustomName { 4204 this := &CustomOneof_MyCustomName{} 4205 this.MyCustomName = int64(r.Int63()) 4206 if r.Intn(2) == 0 { 4207 this.MyCustomName *= -1 4208 } 4209 return this 4210} 4211 4212type randyOne interface { 4213 Float32() float32 4214 Float64() float64 4215 Int63() int64 4216 Int31() int32 4217 Uint32() uint32 4218 Intn(n int) int 4219} 4220 4221func randUTF8RuneOne(r randyOne) rune { 4222 ru := r.Intn(62) 4223 if ru < 10 { 4224 return rune(ru + 48) 4225 } else if ru < 36 { 4226 return rune(ru + 55) 4227 } 4228 return rune(ru + 61) 4229} 4230func randStringOne(r randyOne) string { 4231 v5 := r.Intn(100) 4232 tmps := make([]rune, v5) 4233 for i := 0; i < v5; i++ { 4234 tmps[i] = randUTF8RuneOne(r) 4235 } 4236 return string(tmps) 4237} 4238func randUnrecognizedOne(r randyOne, maxFieldNumber int) (dAtA []byte) { 4239 l := r.Intn(5) 4240 for i := 0; i < l; i++ { 4241 wire := r.Intn(4) 4242 if wire == 3 { 4243 wire = 5 4244 } 4245 fieldNumber := maxFieldNumber + r.Intn(100) 4246 dAtA = randFieldOne(dAtA, r, fieldNumber, wire) 4247 } 4248 return dAtA 4249} 4250func randFieldOne(dAtA []byte, r randyOne, fieldNumber int, wire int) []byte { 4251 key := uint32(fieldNumber)<<3 | uint32(wire) 4252 switch wire { 4253 case 0: 4254 dAtA = encodeVarintPopulateOne(dAtA, uint64(key)) 4255 v6 := r.Int63() 4256 if r.Intn(2) == 0 { 4257 v6 *= -1 4258 } 4259 dAtA = encodeVarintPopulateOne(dAtA, uint64(v6)) 4260 case 1: 4261 dAtA = encodeVarintPopulateOne(dAtA, uint64(key)) 4262 dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) 4263 case 2: 4264 dAtA = encodeVarintPopulateOne(dAtA, uint64(key)) 4265 ll := r.Intn(100) 4266 dAtA = encodeVarintPopulateOne(dAtA, uint64(ll)) 4267 for j := 0; j < ll; j++ { 4268 dAtA = append(dAtA, byte(r.Intn(256))) 4269 } 4270 default: 4271 dAtA = encodeVarintPopulateOne(dAtA, uint64(key)) 4272 dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) 4273 } 4274 return dAtA 4275} 4276func encodeVarintPopulateOne(dAtA []byte, v uint64) []byte { 4277 for v >= 1<<7 { 4278 dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) 4279 v >>= 7 4280 } 4281 dAtA = append(dAtA, uint8(v)) 4282 return dAtA 4283} 4284func (m *Subby) Size() (n int) { 4285 if m == nil { 4286 return 0 4287 } 4288 var l int 4289 _ = l 4290 if m.Sub != nil { 4291 l = len(*m.Sub) 4292 n += 1 + l + sovOne(uint64(l)) 4293 } 4294 if m.XXX_unrecognized != nil { 4295 n += len(m.XXX_unrecognized) 4296 } 4297 return n 4298} 4299 4300func (m *AllTypesOneOf) Size() (n int) { 4301 if m == nil { 4302 return 0 4303 } 4304 var l int 4305 _ = l 4306 if m.TestOneof != nil { 4307 n += m.TestOneof.Size() 4308 } 4309 if m.XXX_unrecognized != nil { 4310 n += len(m.XXX_unrecognized) 4311 } 4312 return n 4313} 4314 4315func (m *AllTypesOneOf_Field1) Size() (n int) { 4316 if m == nil { 4317 return 0 4318 } 4319 var l int 4320 _ = l 4321 n += 9 4322 return n 4323} 4324func (m *AllTypesOneOf_Field2) Size() (n int) { 4325 if m == nil { 4326 return 0 4327 } 4328 var l int 4329 _ = l 4330 n += 5 4331 return n 4332} 4333func (m *AllTypesOneOf_Field3) Size() (n int) { 4334 if m == nil { 4335 return 0 4336 } 4337 var l int 4338 _ = l 4339 n += 1 + sovOne(uint64(m.Field3)) 4340 return n 4341} 4342func (m *AllTypesOneOf_Field4) Size() (n int) { 4343 if m == nil { 4344 return 0 4345 } 4346 var l int 4347 _ = l 4348 n += 1 + sovOne(uint64(m.Field4)) 4349 return n 4350} 4351func (m *AllTypesOneOf_Field5) Size() (n int) { 4352 if m == nil { 4353 return 0 4354 } 4355 var l int 4356 _ = l 4357 n += 1 + sovOne(uint64(m.Field5)) 4358 return n 4359} 4360func (m *AllTypesOneOf_Field6) Size() (n int) { 4361 if m == nil { 4362 return 0 4363 } 4364 var l int 4365 _ = l 4366 n += 1 + sovOne(uint64(m.Field6)) 4367 return n 4368} 4369func (m *AllTypesOneOf_Field7) Size() (n int) { 4370 if m == nil { 4371 return 0 4372 } 4373 var l int 4374 _ = l 4375 n += 1 + sozOne(uint64(m.Field7)) 4376 return n 4377} 4378func (m *AllTypesOneOf_Field8) Size() (n int) { 4379 if m == nil { 4380 return 0 4381 } 4382 var l int 4383 _ = l 4384 n += 1 + sozOne(uint64(m.Field8)) 4385 return n 4386} 4387func (m *AllTypesOneOf_Field9) Size() (n int) { 4388 if m == nil { 4389 return 0 4390 } 4391 var l int 4392 _ = l 4393 n += 5 4394 return n 4395} 4396func (m *AllTypesOneOf_Field10) Size() (n int) { 4397 if m == nil { 4398 return 0 4399 } 4400 var l int 4401 _ = l 4402 n += 5 4403 return n 4404} 4405func (m *AllTypesOneOf_Field11) Size() (n int) { 4406 if m == nil { 4407 return 0 4408 } 4409 var l int 4410 _ = l 4411 n += 9 4412 return n 4413} 4414func (m *AllTypesOneOf_Field12) Size() (n int) { 4415 if m == nil { 4416 return 0 4417 } 4418 var l int 4419 _ = l 4420 n += 9 4421 return n 4422} 4423func (m *AllTypesOneOf_Field13) Size() (n int) { 4424 if m == nil { 4425 return 0 4426 } 4427 var l int 4428 _ = l 4429 n += 2 4430 return n 4431} 4432func (m *AllTypesOneOf_Field14) Size() (n int) { 4433 if m == nil { 4434 return 0 4435 } 4436 var l int 4437 _ = l 4438 l = len(m.Field14) 4439 n += 1 + l + sovOne(uint64(l)) 4440 return n 4441} 4442func (m *AllTypesOneOf_Field15) Size() (n int) { 4443 if m == nil { 4444 return 0 4445 } 4446 var l int 4447 _ = l 4448 if m.Field15 != nil { 4449 l = len(m.Field15) 4450 n += 1 + l + sovOne(uint64(l)) 4451 } 4452 return n 4453} 4454func (m *AllTypesOneOf_SubMessage) Size() (n int) { 4455 if m == nil { 4456 return 0 4457 } 4458 var l int 4459 _ = l 4460 if m.SubMessage != nil { 4461 l = m.SubMessage.Size() 4462 n += 2 + l + sovOne(uint64(l)) 4463 } 4464 return n 4465} 4466func (m *TwoOneofs) Size() (n int) { 4467 if m == nil { 4468 return 0 4469 } 4470 var l int 4471 _ = l 4472 if m.One != nil { 4473 n += m.One.Size() 4474 } 4475 if m.Two != nil { 4476 n += m.Two.Size() 4477 } 4478 if m.XXX_unrecognized != nil { 4479 n += len(m.XXX_unrecognized) 4480 } 4481 return n 4482} 4483 4484func (m *TwoOneofs_Field1) Size() (n int) { 4485 if m == nil { 4486 return 0 4487 } 4488 var l int 4489 _ = l 4490 n += 9 4491 return n 4492} 4493func (m *TwoOneofs_Field2) Size() (n int) { 4494 if m == nil { 4495 return 0 4496 } 4497 var l int 4498 _ = l 4499 n += 5 4500 return n 4501} 4502func (m *TwoOneofs_Field3) Size() (n int) { 4503 if m == nil { 4504 return 0 4505 } 4506 var l int 4507 _ = l 4508 n += 1 + sovOne(uint64(m.Field3)) 4509 return n 4510} 4511func (m *TwoOneofs_Field34) Size() (n int) { 4512 if m == nil { 4513 return 0 4514 } 4515 var l int 4516 _ = l 4517 l = len(m.Field34) 4518 n += 2 + l + sovOne(uint64(l)) 4519 return n 4520} 4521func (m *TwoOneofs_Field35) Size() (n int) { 4522 if m == nil { 4523 return 0 4524 } 4525 var l int 4526 _ = l 4527 if m.Field35 != nil { 4528 l = len(m.Field35) 4529 n += 2 + l + sovOne(uint64(l)) 4530 } 4531 return n 4532} 4533func (m *TwoOneofs_SubMessage2) Size() (n int) { 4534 if m == nil { 4535 return 0 4536 } 4537 var l int 4538 _ = l 4539 if m.SubMessage2 != nil { 4540 l = m.SubMessage2.Size() 4541 n += 2 + l + sovOne(uint64(l)) 4542 } 4543 return n 4544} 4545func (m *CustomOneof) Size() (n int) { 4546 if m == nil { 4547 return 0 4548 } 4549 var l int 4550 _ = l 4551 if m.Custom != nil { 4552 n += m.Custom.Size() 4553 } 4554 if m.XXX_unrecognized != nil { 4555 n += len(m.XXX_unrecognized) 4556 } 4557 return n 4558} 4559 4560func (m *CustomOneof_Stringy) Size() (n int) { 4561 if m == nil { 4562 return 0 4563 } 4564 var l int 4565 _ = l 4566 l = len(m.Stringy) 4567 n += 2 + l + sovOne(uint64(l)) 4568 return n 4569} 4570func (m *CustomOneof_CustomType) Size() (n int) { 4571 if m == nil { 4572 return 0 4573 } 4574 var l int 4575 _ = l 4576 l = m.CustomType.Size() 4577 n += 2 + l + sovOne(uint64(l)) 4578 return n 4579} 4580func (m *CustomOneof_CastType) Size() (n int) { 4581 if m == nil { 4582 return 0 4583 } 4584 var l int 4585 _ = l 4586 n += 2 + sovOne(uint64(m.CastType)) 4587 return n 4588} 4589func (m *CustomOneof_MyCustomName) Size() (n int) { 4590 if m == nil { 4591 return 0 4592 } 4593 var l int 4594 _ = l 4595 n += 2 + sovOne(uint64(m.MyCustomName)) 4596 return n 4597} 4598 4599func sovOne(x uint64) (n int) { 4600 return (math_bits.Len64(x|1) + 6) / 7 4601} 4602func sozOne(x uint64) (n int) { 4603 return sovOne(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 4604} 4605func (this *Subby) String() string { 4606 if this == nil { 4607 return "nil" 4608 } 4609 s := strings.Join([]string{`&Subby{`, 4610 `Sub:` + valueToStringOne(this.Sub) + `,`, 4611 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 4612 `}`, 4613 }, "") 4614 return s 4615} 4616func (this *AllTypesOneOf) String() string { 4617 if this == nil { 4618 return "nil" 4619 } 4620 s := strings.Join([]string{`&AllTypesOneOf{`, 4621 `TestOneof:` + fmt.Sprintf("%v", this.TestOneof) + `,`, 4622 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 4623 `}`, 4624 }, "") 4625 return s 4626} 4627func (this *AllTypesOneOf_Field1) String() string { 4628 if this == nil { 4629 return "nil" 4630 } 4631 s := strings.Join([]string{`&AllTypesOneOf_Field1{`, 4632 `Field1:` + fmt.Sprintf("%v", this.Field1) + `,`, 4633 `}`, 4634 }, "") 4635 return s 4636} 4637func (this *AllTypesOneOf_Field2) String() string { 4638 if this == nil { 4639 return "nil" 4640 } 4641 s := strings.Join([]string{`&AllTypesOneOf_Field2{`, 4642 `Field2:` + fmt.Sprintf("%v", this.Field2) + `,`, 4643 `}`, 4644 }, "") 4645 return s 4646} 4647func (this *AllTypesOneOf_Field3) String() string { 4648 if this == nil { 4649 return "nil" 4650 } 4651 s := strings.Join([]string{`&AllTypesOneOf_Field3{`, 4652 `Field3:` + fmt.Sprintf("%v", this.Field3) + `,`, 4653 `}`, 4654 }, "") 4655 return s 4656} 4657func (this *AllTypesOneOf_Field4) String() string { 4658 if this == nil { 4659 return "nil" 4660 } 4661 s := strings.Join([]string{`&AllTypesOneOf_Field4{`, 4662 `Field4:` + fmt.Sprintf("%v", this.Field4) + `,`, 4663 `}`, 4664 }, "") 4665 return s 4666} 4667func (this *AllTypesOneOf_Field5) String() string { 4668 if this == nil { 4669 return "nil" 4670 } 4671 s := strings.Join([]string{`&AllTypesOneOf_Field5{`, 4672 `Field5:` + fmt.Sprintf("%v", this.Field5) + `,`, 4673 `}`, 4674 }, "") 4675 return s 4676} 4677func (this *AllTypesOneOf_Field6) String() string { 4678 if this == nil { 4679 return "nil" 4680 } 4681 s := strings.Join([]string{`&AllTypesOneOf_Field6{`, 4682 `Field6:` + fmt.Sprintf("%v", this.Field6) + `,`, 4683 `}`, 4684 }, "") 4685 return s 4686} 4687func (this *AllTypesOneOf_Field7) String() string { 4688 if this == nil { 4689 return "nil" 4690 } 4691 s := strings.Join([]string{`&AllTypesOneOf_Field7{`, 4692 `Field7:` + fmt.Sprintf("%v", this.Field7) + `,`, 4693 `}`, 4694 }, "") 4695 return s 4696} 4697func (this *AllTypesOneOf_Field8) String() string { 4698 if this == nil { 4699 return "nil" 4700 } 4701 s := strings.Join([]string{`&AllTypesOneOf_Field8{`, 4702 `Field8:` + fmt.Sprintf("%v", this.Field8) + `,`, 4703 `}`, 4704 }, "") 4705 return s 4706} 4707func (this *AllTypesOneOf_Field9) String() string { 4708 if this == nil { 4709 return "nil" 4710 } 4711 s := strings.Join([]string{`&AllTypesOneOf_Field9{`, 4712 `Field9:` + fmt.Sprintf("%v", this.Field9) + `,`, 4713 `}`, 4714 }, "") 4715 return s 4716} 4717func (this *AllTypesOneOf_Field10) String() string { 4718 if this == nil { 4719 return "nil" 4720 } 4721 s := strings.Join([]string{`&AllTypesOneOf_Field10{`, 4722 `Field10:` + fmt.Sprintf("%v", this.Field10) + `,`, 4723 `}`, 4724 }, "") 4725 return s 4726} 4727func (this *AllTypesOneOf_Field11) String() string { 4728 if this == nil { 4729 return "nil" 4730 } 4731 s := strings.Join([]string{`&AllTypesOneOf_Field11{`, 4732 `Field11:` + fmt.Sprintf("%v", this.Field11) + `,`, 4733 `}`, 4734 }, "") 4735 return s 4736} 4737func (this *AllTypesOneOf_Field12) String() string { 4738 if this == nil { 4739 return "nil" 4740 } 4741 s := strings.Join([]string{`&AllTypesOneOf_Field12{`, 4742 `Field12:` + fmt.Sprintf("%v", this.Field12) + `,`, 4743 `}`, 4744 }, "") 4745 return s 4746} 4747func (this *AllTypesOneOf_Field13) String() string { 4748 if this == nil { 4749 return "nil" 4750 } 4751 s := strings.Join([]string{`&AllTypesOneOf_Field13{`, 4752 `Field13:` + fmt.Sprintf("%v", this.Field13) + `,`, 4753 `}`, 4754 }, "") 4755 return s 4756} 4757func (this *AllTypesOneOf_Field14) String() string { 4758 if this == nil { 4759 return "nil" 4760 } 4761 s := strings.Join([]string{`&AllTypesOneOf_Field14{`, 4762 `Field14:` + fmt.Sprintf("%v", this.Field14) + `,`, 4763 `}`, 4764 }, "") 4765 return s 4766} 4767func (this *AllTypesOneOf_Field15) String() string { 4768 if this == nil { 4769 return "nil" 4770 } 4771 s := strings.Join([]string{`&AllTypesOneOf_Field15{`, 4772 `Field15:` + fmt.Sprintf("%v", this.Field15) + `,`, 4773 `}`, 4774 }, "") 4775 return s 4776} 4777func (this *AllTypesOneOf_SubMessage) String() string { 4778 if this == nil { 4779 return "nil" 4780 } 4781 s := strings.Join([]string{`&AllTypesOneOf_SubMessage{`, 4782 `SubMessage:` + strings.Replace(fmt.Sprintf("%v", this.SubMessage), "Subby", "Subby", 1) + `,`, 4783 `}`, 4784 }, "") 4785 return s 4786} 4787func (this *TwoOneofs) String() string { 4788 if this == nil { 4789 return "nil" 4790 } 4791 s := strings.Join([]string{`&TwoOneofs{`, 4792 `One:` + fmt.Sprintf("%v", this.One) + `,`, 4793 `Two:` + fmt.Sprintf("%v", this.Two) + `,`, 4794 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 4795 `}`, 4796 }, "") 4797 return s 4798} 4799func (this *TwoOneofs_Field1) String() string { 4800 if this == nil { 4801 return "nil" 4802 } 4803 s := strings.Join([]string{`&TwoOneofs_Field1{`, 4804 `Field1:` + fmt.Sprintf("%v", this.Field1) + `,`, 4805 `}`, 4806 }, "") 4807 return s 4808} 4809func (this *TwoOneofs_Field2) String() string { 4810 if this == nil { 4811 return "nil" 4812 } 4813 s := strings.Join([]string{`&TwoOneofs_Field2{`, 4814 `Field2:` + fmt.Sprintf("%v", this.Field2) + `,`, 4815 `}`, 4816 }, "") 4817 return s 4818} 4819func (this *TwoOneofs_Field3) String() string { 4820 if this == nil { 4821 return "nil" 4822 } 4823 s := strings.Join([]string{`&TwoOneofs_Field3{`, 4824 `Field3:` + fmt.Sprintf("%v", this.Field3) + `,`, 4825 `}`, 4826 }, "") 4827 return s 4828} 4829func (this *TwoOneofs_Field34) String() string { 4830 if this == nil { 4831 return "nil" 4832 } 4833 s := strings.Join([]string{`&TwoOneofs_Field34{`, 4834 `Field34:` + fmt.Sprintf("%v", this.Field34) + `,`, 4835 `}`, 4836 }, "") 4837 return s 4838} 4839func (this *TwoOneofs_Field35) String() string { 4840 if this == nil { 4841 return "nil" 4842 } 4843 s := strings.Join([]string{`&TwoOneofs_Field35{`, 4844 `Field35:` + fmt.Sprintf("%v", this.Field35) + `,`, 4845 `}`, 4846 }, "") 4847 return s 4848} 4849func (this *TwoOneofs_SubMessage2) String() string { 4850 if this == nil { 4851 return "nil" 4852 } 4853 s := strings.Join([]string{`&TwoOneofs_SubMessage2{`, 4854 `SubMessage2:` + strings.Replace(fmt.Sprintf("%v", this.SubMessage2), "Subby", "Subby", 1) + `,`, 4855 `}`, 4856 }, "") 4857 return s 4858} 4859func (this *CustomOneof) String() string { 4860 if this == nil { 4861 return "nil" 4862 } 4863 s := strings.Join([]string{`&CustomOneof{`, 4864 `Custom:` + fmt.Sprintf("%v", this.Custom) + `,`, 4865 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 4866 `}`, 4867 }, "") 4868 return s 4869} 4870func (this *CustomOneof_Stringy) String() string { 4871 if this == nil { 4872 return "nil" 4873 } 4874 s := strings.Join([]string{`&CustomOneof_Stringy{`, 4875 `Stringy:` + fmt.Sprintf("%v", this.Stringy) + `,`, 4876 `}`, 4877 }, "") 4878 return s 4879} 4880func (this *CustomOneof_CustomType) String() string { 4881 if this == nil { 4882 return "nil" 4883 } 4884 s := strings.Join([]string{`&CustomOneof_CustomType{`, 4885 `CustomType:` + fmt.Sprintf("%v", this.CustomType) + `,`, 4886 `}`, 4887 }, "") 4888 return s 4889} 4890func (this *CustomOneof_CastType) String() string { 4891 if this == nil { 4892 return "nil" 4893 } 4894 s := strings.Join([]string{`&CustomOneof_CastType{`, 4895 `CastType:` + fmt.Sprintf("%v", this.CastType) + `,`, 4896 `}`, 4897 }, "") 4898 return s 4899} 4900func (this *CustomOneof_MyCustomName) String() string { 4901 if this == nil { 4902 return "nil" 4903 } 4904 s := strings.Join([]string{`&CustomOneof_MyCustomName{`, 4905 `MyCustomName:` + fmt.Sprintf("%v", this.MyCustomName) + `,`, 4906 `}`, 4907 }, "") 4908 return s 4909} 4910func valueToStringOne(v interface{}) string { 4911 rv := reflect.ValueOf(v) 4912 if rv.IsNil() { 4913 return "nil" 4914 } 4915 pv := reflect.Indirect(rv).Interface() 4916 return fmt.Sprintf("*%v", pv) 4917} 4918func (m *Subby) Unmarshal(dAtA []byte) error { 4919 l := len(dAtA) 4920 iNdEx := 0 4921 for iNdEx < l { 4922 preIndex := iNdEx 4923 var wire uint64 4924 for shift := uint(0); ; shift += 7 { 4925 if shift >= 64 { 4926 return ErrIntOverflowOne 4927 } 4928 if iNdEx >= l { 4929 return io.ErrUnexpectedEOF 4930 } 4931 b := dAtA[iNdEx] 4932 iNdEx++ 4933 wire |= uint64(b&0x7F) << shift 4934 if b < 0x80 { 4935 break 4936 } 4937 } 4938 fieldNum := int32(wire >> 3) 4939 wireType := int(wire & 0x7) 4940 if wireType == 4 { 4941 return fmt.Errorf("proto: Subby: wiretype end group for non-group") 4942 } 4943 if fieldNum <= 0 { 4944 return fmt.Errorf("proto: Subby: illegal tag %d (wire type %d)", fieldNum, wire) 4945 } 4946 switch fieldNum { 4947 case 1: 4948 if wireType != 2 { 4949 return fmt.Errorf("proto: wrong wireType = %d for field Sub", wireType) 4950 } 4951 var stringLen uint64 4952 for shift := uint(0); ; shift += 7 { 4953 if shift >= 64 { 4954 return ErrIntOverflowOne 4955 } 4956 if iNdEx >= l { 4957 return io.ErrUnexpectedEOF 4958 } 4959 b := dAtA[iNdEx] 4960 iNdEx++ 4961 stringLen |= uint64(b&0x7F) << shift 4962 if b < 0x80 { 4963 break 4964 } 4965 } 4966 intStringLen := int(stringLen) 4967 if intStringLen < 0 { 4968 return ErrInvalidLengthOne 4969 } 4970 postIndex := iNdEx + intStringLen 4971 if postIndex < 0 { 4972 return ErrInvalidLengthOne 4973 } 4974 if postIndex > l { 4975 return io.ErrUnexpectedEOF 4976 } 4977 s := string(dAtA[iNdEx:postIndex]) 4978 m.Sub = &s 4979 iNdEx = postIndex 4980 default: 4981 iNdEx = preIndex 4982 skippy, err := skipOne(dAtA[iNdEx:]) 4983 if err != nil { 4984 return err 4985 } 4986 if skippy < 0 { 4987 return ErrInvalidLengthOne 4988 } 4989 if (iNdEx + skippy) < 0 { 4990 return ErrInvalidLengthOne 4991 } 4992 if (iNdEx + skippy) > l { 4993 return io.ErrUnexpectedEOF 4994 } 4995 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4996 iNdEx += skippy 4997 } 4998 } 4999 5000 if iNdEx > l { 5001 return io.ErrUnexpectedEOF 5002 } 5003 return nil 5004} 5005func (m *AllTypesOneOf) Unmarshal(dAtA []byte) error { 5006 l := len(dAtA) 5007 iNdEx := 0 5008 for iNdEx < l { 5009 preIndex := iNdEx 5010 var wire uint64 5011 for shift := uint(0); ; shift += 7 { 5012 if shift >= 64 { 5013 return ErrIntOverflowOne 5014 } 5015 if iNdEx >= l { 5016 return io.ErrUnexpectedEOF 5017 } 5018 b := dAtA[iNdEx] 5019 iNdEx++ 5020 wire |= uint64(b&0x7F) << shift 5021 if b < 0x80 { 5022 break 5023 } 5024 } 5025 fieldNum := int32(wire >> 3) 5026 wireType := int(wire & 0x7) 5027 if wireType == 4 { 5028 return fmt.Errorf("proto: AllTypesOneOf: wiretype end group for non-group") 5029 } 5030 if fieldNum <= 0 { 5031 return fmt.Errorf("proto: AllTypesOneOf: illegal tag %d (wire type %d)", fieldNum, wire) 5032 } 5033 switch fieldNum { 5034 case 1: 5035 if wireType != 1 { 5036 return fmt.Errorf("proto: wrong wireType = %d for field Field1", wireType) 5037 } 5038 var v uint64 5039 if (iNdEx + 8) > l { 5040 return io.ErrUnexpectedEOF 5041 } 5042 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 5043 iNdEx += 8 5044 m.TestOneof = &AllTypesOneOf_Field1{float64(math.Float64frombits(v))} 5045 case 2: 5046 if wireType != 5 { 5047 return fmt.Errorf("proto: wrong wireType = %d for field Field2", wireType) 5048 } 5049 var v uint32 5050 if (iNdEx + 4) > l { 5051 return io.ErrUnexpectedEOF 5052 } 5053 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 5054 iNdEx += 4 5055 m.TestOneof = &AllTypesOneOf_Field2{float32(math.Float32frombits(v))} 5056 case 3: 5057 if wireType != 0 { 5058 return fmt.Errorf("proto: wrong wireType = %d for field Field3", wireType) 5059 } 5060 var v int32 5061 for shift := uint(0); ; shift += 7 { 5062 if shift >= 64 { 5063 return ErrIntOverflowOne 5064 } 5065 if iNdEx >= l { 5066 return io.ErrUnexpectedEOF 5067 } 5068 b := dAtA[iNdEx] 5069 iNdEx++ 5070 v |= int32(b&0x7F) << shift 5071 if b < 0x80 { 5072 break 5073 } 5074 } 5075 m.TestOneof = &AllTypesOneOf_Field3{v} 5076 case 4: 5077 if wireType != 0 { 5078 return fmt.Errorf("proto: wrong wireType = %d for field Field4", wireType) 5079 } 5080 var v int64 5081 for shift := uint(0); ; shift += 7 { 5082 if shift >= 64 { 5083 return ErrIntOverflowOne 5084 } 5085 if iNdEx >= l { 5086 return io.ErrUnexpectedEOF 5087 } 5088 b := dAtA[iNdEx] 5089 iNdEx++ 5090 v |= int64(b&0x7F) << shift 5091 if b < 0x80 { 5092 break 5093 } 5094 } 5095 m.TestOneof = &AllTypesOneOf_Field4{v} 5096 case 5: 5097 if wireType != 0 { 5098 return fmt.Errorf("proto: wrong wireType = %d for field Field5", wireType) 5099 } 5100 var v uint32 5101 for shift := uint(0); ; shift += 7 { 5102 if shift >= 64 { 5103 return ErrIntOverflowOne 5104 } 5105 if iNdEx >= l { 5106 return io.ErrUnexpectedEOF 5107 } 5108 b := dAtA[iNdEx] 5109 iNdEx++ 5110 v |= uint32(b&0x7F) << shift 5111 if b < 0x80 { 5112 break 5113 } 5114 } 5115 m.TestOneof = &AllTypesOneOf_Field5{v} 5116 case 6: 5117 if wireType != 0 { 5118 return fmt.Errorf("proto: wrong wireType = %d for field Field6", wireType) 5119 } 5120 var v uint64 5121 for shift := uint(0); ; shift += 7 { 5122 if shift >= 64 { 5123 return ErrIntOverflowOne 5124 } 5125 if iNdEx >= l { 5126 return io.ErrUnexpectedEOF 5127 } 5128 b := dAtA[iNdEx] 5129 iNdEx++ 5130 v |= uint64(b&0x7F) << shift 5131 if b < 0x80 { 5132 break 5133 } 5134 } 5135 m.TestOneof = &AllTypesOneOf_Field6{v} 5136 case 7: 5137 if wireType != 0 { 5138 return fmt.Errorf("proto: wrong wireType = %d for field Field7", wireType) 5139 } 5140 var v int32 5141 for shift := uint(0); ; shift += 7 { 5142 if shift >= 64 { 5143 return ErrIntOverflowOne 5144 } 5145 if iNdEx >= l { 5146 return io.ErrUnexpectedEOF 5147 } 5148 b := dAtA[iNdEx] 5149 iNdEx++ 5150 v |= int32(b&0x7F) << shift 5151 if b < 0x80 { 5152 break 5153 } 5154 } 5155 v = int32((uint32(v) >> 1) ^ uint32(((v&1)<<31)>>31)) 5156 m.TestOneof = &AllTypesOneOf_Field7{v} 5157 case 8: 5158 if wireType != 0 { 5159 return fmt.Errorf("proto: wrong wireType = %d for field Field8", wireType) 5160 } 5161 var v uint64 5162 for shift := uint(0); ; shift += 7 { 5163 if shift >= 64 { 5164 return ErrIntOverflowOne 5165 } 5166 if iNdEx >= l { 5167 return io.ErrUnexpectedEOF 5168 } 5169 b := dAtA[iNdEx] 5170 iNdEx++ 5171 v |= uint64(b&0x7F) << shift 5172 if b < 0x80 { 5173 break 5174 } 5175 } 5176 v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63) 5177 m.TestOneof = &AllTypesOneOf_Field8{int64(v)} 5178 case 9: 5179 if wireType != 5 { 5180 return fmt.Errorf("proto: wrong wireType = %d for field Field9", wireType) 5181 } 5182 var v uint32 5183 if (iNdEx + 4) > l { 5184 return io.ErrUnexpectedEOF 5185 } 5186 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 5187 iNdEx += 4 5188 m.TestOneof = &AllTypesOneOf_Field9{v} 5189 case 10: 5190 if wireType != 5 { 5191 return fmt.Errorf("proto: wrong wireType = %d for field Field10", wireType) 5192 } 5193 var v int32 5194 if (iNdEx + 4) > l { 5195 return io.ErrUnexpectedEOF 5196 } 5197 v = int32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 5198 iNdEx += 4 5199 m.TestOneof = &AllTypesOneOf_Field10{v} 5200 case 11: 5201 if wireType != 1 { 5202 return fmt.Errorf("proto: wrong wireType = %d for field Field11", wireType) 5203 } 5204 var v uint64 5205 if (iNdEx + 8) > l { 5206 return io.ErrUnexpectedEOF 5207 } 5208 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 5209 iNdEx += 8 5210 m.TestOneof = &AllTypesOneOf_Field11{v} 5211 case 12: 5212 if wireType != 1 { 5213 return fmt.Errorf("proto: wrong wireType = %d for field Field12", wireType) 5214 } 5215 var v int64 5216 if (iNdEx + 8) > l { 5217 return io.ErrUnexpectedEOF 5218 } 5219 v = int64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 5220 iNdEx += 8 5221 m.TestOneof = &AllTypesOneOf_Field12{v} 5222 case 13: 5223 if wireType != 0 { 5224 return fmt.Errorf("proto: wrong wireType = %d for field Field13", wireType) 5225 } 5226 var v int 5227 for shift := uint(0); ; shift += 7 { 5228 if shift >= 64 { 5229 return ErrIntOverflowOne 5230 } 5231 if iNdEx >= l { 5232 return io.ErrUnexpectedEOF 5233 } 5234 b := dAtA[iNdEx] 5235 iNdEx++ 5236 v |= int(b&0x7F) << shift 5237 if b < 0x80 { 5238 break 5239 } 5240 } 5241 b := bool(v != 0) 5242 m.TestOneof = &AllTypesOneOf_Field13{b} 5243 case 14: 5244 if wireType != 2 { 5245 return fmt.Errorf("proto: wrong wireType = %d for field Field14", wireType) 5246 } 5247 var stringLen uint64 5248 for shift := uint(0); ; shift += 7 { 5249 if shift >= 64 { 5250 return ErrIntOverflowOne 5251 } 5252 if iNdEx >= l { 5253 return io.ErrUnexpectedEOF 5254 } 5255 b := dAtA[iNdEx] 5256 iNdEx++ 5257 stringLen |= uint64(b&0x7F) << shift 5258 if b < 0x80 { 5259 break 5260 } 5261 } 5262 intStringLen := int(stringLen) 5263 if intStringLen < 0 { 5264 return ErrInvalidLengthOne 5265 } 5266 postIndex := iNdEx + intStringLen 5267 if postIndex < 0 { 5268 return ErrInvalidLengthOne 5269 } 5270 if postIndex > l { 5271 return io.ErrUnexpectedEOF 5272 } 5273 m.TestOneof = &AllTypesOneOf_Field14{string(dAtA[iNdEx:postIndex])} 5274 iNdEx = postIndex 5275 case 15: 5276 if wireType != 2 { 5277 return fmt.Errorf("proto: wrong wireType = %d for field Field15", wireType) 5278 } 5279 var byteLen int 5280 for shift := uint(0); ; shift += 7 { 5281 if shift >= 64 { 5282 return ErrIntOverflowOne 5283 } 5284 if iNdEx >= l { 5285 return io.ErrUnexpectedEOF 5286 } 5287 b := dAtA[iNdEx] 5288 iNdEx++ 5289 byteLen |= int(b&0x7F) << shift 5290 if b < 0x80 { 5291 break 5292 } 5293 } 5294 if byteLen < 0 { 5295 return ErrInvalidLengthOne 5296 } 5297 postIndex := iNdEx + byteLen 5298 if postIndex < 0 { 5299 return ErrInvalidLengthOne 5300 } 5301 if postIndex > l { 5302 return io.ErrUnexpectedEOF 5303 } 5304 v := make([]byte, postIndex-iNdEx) 5305 copy(v, dAtA[iNdEx:postIndex]) 5306 m.TestOneof = &AllTypesOneOf_Field15{v} 5307 iNdEx = postIndex 5308 case 16: 5309 if wireType != 2 { 5310 return fmt.Errorf("proto: wrong wireType = %d for field SubMessage", wireType) 5311 } 5312 var msglen int 5313 for shift := uint(0); ; shift += 7 { 5314 if shift >= 64 { 5315 return ErrIntOverflowOne 5316 } 5317 if iNdEx >= l { 5318 return io.ErrUnexpectedEOF 5319 } 5320 b := dAtA[iNdEx] 5321 iNdEx++ 5322 msglen |= int(b&0x7F) << shift 5323 if b < 0x80 { 5324 break 5325 } 5326 } 5327 if msglen < 0 { 5328 return ErrInvalidLengthOne 5329 } 5330 postIndex := iNdEx + msglen 5331 if postIndex < 0 { 5332 return ErrInvalidLengthOne 5333 } 5334 if postIndex > l { 5335 return io.ErrUnexpectedEOF 5336 } 5337 v := &Subby{} 5338 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5339 return err 5340 } 5341 m.TestOneof = &AllTypesOneOf_SubMessage{v} 5342 iNdEx = postIndex 5343 default: 5344 iNdEx = preIndex 5345 skippy, err := skipOne(dAtA[iNdEx:]) 5346 if err != nil { 5347 return err 5348 } 5349 if skippy < 0 { 5350 return ErrInvalidLengthOne 5351 } 5352 if (iNdEx + skippy) < 0 { 5353 return ErrInvalidLengthOne 5354 } 5355 if (iNdEx + skippy) > l { 5356 return io.ErrUnexpectedEOF 5357 } 5358 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5359 iNdEx += skippy 5360 } 5361 } 5362 5363 if iNdEx > l { 5364 return io.ErrUnexpectedEOF 5365 } 5366 return nil 5367} 5368func (m *TwoOneofs) Unmarshal(dAtA []byte) error { 5369 l := len(dAtA) 5370 iNdEx := 0 5371 for iNdEx < l { 5372 preIndex := iNdEx 5373 var wire uint64 5374 for shift := uint(0); ; shift += 7 { 5375 if shift >= 64 { 5376 return ErrIntOverflowOne 5377 } 5378 if iNdEx >= l { 5379 return io.ErrUnexpectedEOF 5380 } 5381 b := dAtA[iNdEx] 5382 iNdEx++ 5383 wire |= uint64(b&0x7F) << shift 5384 if b < 0x80 { 5385 break 5386 } 5387 } 5388 fieldNum := int32(wire >> 3) 5389 wireType := int(wire & 0x7) 5390 if wireType == 4 { 5391 return fmt.Errorf("proto: TwoOneofs: wiretype end group for non-group") 5392 } 5393 if fieldNum <= 0 { 5394 return fmt.Errorf("proto: TwoOneofs: illegal tag %d (wire type %d)", fieldNum, wire) 5395 } 5396 switch fieldNum { 5397 case 1: 5398 if wireType != 1 { 5399 return fmt.Errorf("proto: wrong wireType = %d for field Field1", wireType) 5400 } 5401 var v uint64 5402 if (iNdEx + 8) > l { 5403 return io.ErrUnexpectedEOF 5404 } 5405 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 5406 iNdEx += 8 5407 m.One = &TwoOneofs_Field1{float64(math.Float64frombits(v))} 5408 case 2: 5409 if wireType != 5 { 5410 return fmt.Errorf("proto: wrong wireType = %d for field Field2", wireType) 5411 } 5412 var v uint32 5413 if (iNdEx + 4) > l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 5417 iNdEx += 4 5418 m.One = &TwoOneofs_Field2{float32(math.Float32frombits(v))} 5419 case 3: 5420 if wireType != 0 { 5421 return fmt.Errorf("proto: wrong wireType = %d for field Field3", wireType) 5422 } 5423 var v int32 5424 for shift := uint(0); ; shift += 7 { 5425 if shift >= 64 { 5426 return ErrIntOverflowOne 5427 } 5428 if iNdEx >= l { 5429 return io.ErrUnexpectedEOF 5430 } 5431 b := dAtA[iNdEx] 5432 iNdEx++ 5433 v |= int32(b&0x7F) << shift 5434 if b < 0x80 { 5435 break 5436 } 5437 } 5438 m.One = &TwoOneofs_Field3{v} 5439 case 34: 5440 if wireType != 2 { 5441 return fmt.Errorf("proto: wrong wireType = %d for field Field34", wireType) 5442 } 5443 var stringLen uint64 5444 for shift := uint(0); ; shift += 7 { 5445 if shift >= 64 { 5446 return ErrIntOverflowOne 5447 } 5448 if iNdEx >= l { 5449 return io.ErrUnexpectedEOF 5450 } 5451 b := dAtA[iNdEx] 5452 iNdEx++ 5453 stringLen |= uint64(b&0x7F) << shift 5454 if b < 0x80 { 5455 break 5456 } 5457 } 5458 intStringLen := int(stringLen) 5459 if intStringLen < 0 { 5460 return ErrInvalidLengthOne 5461 } 5462 postIndex := iNdEx + intStringLen 5463 if postIndex < 0 { 5464 return ErrInvalidLengthOne 5465 } 5466 if postIndex > l { 5467 return io.ErrUnexpectedEOF 5468 } 5469 m.Two = &TwoOneofs_Field34{string(dAtA[iNdEx:postIndex])} 5470 iNdEx = postIndex 5471 case 35: 5472 if wireType != 2 { 5473 return fmt.Errorf("proto: wrong wireType = %d for field Field35", wireType) 5474 } 5475 var byteLen int 5476 for shift := uint(0); ; shift += 7 { 5477 if shift >= 64 { 5478 return ErrIntOverflowOne 5479 } 5480 if iNdEx >= l { 5481 return io.ErrUnexpectedEOF 5482 } 5483 b := dAtA[iNdEx] 5484 iNdEx++ 5485 byteLen |= int(b&0x7F) << shift 5486 if b < 0x80 { 5487 break 5488 } 5489 } 5490 if byteLen < 0 { 5491 return ErrInvalidLengthOne 5492 } 5493 postIndex := iNdEx + byteLen 5494 if postIndex < 0 { 5495 return ErrInvalidLengthOne 5496 } 5497 if postIndex > l { 5498 return io.ErrUnexpectedEOF 5499 } 5500 v := make([]byte, postIndex-iNdEx) 5501 copy(v, dAtA[iNdEx:postIndex]) 5502 m.Two = &TwoOneofs_Field35{v} 5503 iNdEx = postIndex 5504 case 36: 5505 if wireType != 2 { 5506 return fmt.Errorf("proto: wrong wireType = %d for field SubMessage2", wireType) 5507 } 5508 var msglen int 5509 for shift := uint(0); ; shift += 7 { 5510 if shift >= 64 { 5511 return ErrIntOverflowOne 5512 } 5513 if iNdEx >= l { 5514 return io.ErrUnexpectedEOF 5515 } 5516 b := dAtA[iNdEx] 5517 iNdEx++ 5518 msglen |= int(b&0x7F) << shift 5519 if b < 0x80 { 5520 break 5521 } 5522 } 5523 if msglen < 0 { 5524 return ErrInvalidLengthOne 5525 } 5526 postIndex := iNdEx + msglen 5527 if postIndex < 0 { 5528 return ErrInvalidLengthOne 5529 } 5530 if postIndex > l { 5531 return io.ErrUnexpectedEOF 5532 } 5533 v := &Subby{} 5534 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5535 return err 5536 } 5537 m.Two = &TwoOneofs_SubMessage2{v} 5538 iNdEx = postIndex 5539 default: 5540 iNdEx = preIndex 5541 skippy, err := skipOne(dAtA[iNdEx:]) 5542 if err != nil { 5543 return err 5544 } 5545 if skippy < 0 { 5546 return ErrInvalidLengthOne 5547 } 5548 if (iNdEx + skippy) < 0 { 5549 return ErrInvalidLengthOne 5550 } 5551 if (iNdEx + skippy) > l { 5552 return io.ErrUnexpectedEOF 5553 } 5554 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5555 iNdEx += skippy 5556 } 5557 } 5558 5559 if iNdEx > l { 5560 return io.ErrUnexpectedEOF 5561 } 5562 return nil 5563} 5564func (m *CustomOneof) Unmarshal(dAtA []byte) error { 5565 l := len(dAtA) 5566 iNdEx := 0 5567 for iNdEx < l { 5568 preIndex := iNdEx 5569 var wire uint64 5570 for shift := uint(0); ; shift += 7 { 5571 if shift >= 64 { 5572 return ErrIntOverflowOne 5573 } 5574 if iNdEx >= l { 5575 return io.ErrUnexpectedEOF 5576 } 5577 b := dAtA[iNdEx] 5578 iNdEx++ 5579 wire |= uint64(b&0x7F) << shift 5580 if b < 0x80 { 5581 break 5582 } 5583 } 5584 fieldNum := int32(wire >> 3) 5585 wireType := int(wire & 0x7) 5586 if wireType == 4 { 5587 return fmt.Errorf("proto: CustomOneof: wiretype end group for non-group") 5588 } 5589 if fieldNum <= 0 { 5590 return fmt.Errorf("proto: CustomOneof: illegal tag %d (wire type %d)", fieldNum, wire) 5591 } 5592 switch fieldNum { 5593 case 34: 5594 if wireType != 2 { 5595 return fmt.Errorf("proto: wrong wireType = %d for field Stringy", wireType) 5596 } 5597 var stringLen uint64 5598 for shift := uint(0); ; shift += 7 { 5599 if shift >= 64 { 5600 return ErrIntOverflowOne 5601 } 5602 if iNdEx >= l { 5603 return io.ErrUnexpectedEOF 5604 } 5605 b := dAtA[iNdEx] 5606 iNdEx++ 5607 stringLen |= uint64(b&0x7F) << shift 5608 if b < 0x80 { 5609 break 5610 } 5611 } 5612 intStringLen := int(stringLen) 5613 if intStringLen < 0 { 5614 return ErrInvalidLengthOne 5615 } 5616 postIndex := iNdEx + intStringLen 5617 if postIndex < 0 { 5618 return ErrInvalidLengthOne 5619 } 5620 if postIndex > l { 5621 return io.ErrUnexpectedEOF 5622 } 5623 m.Custom = &CustomOneof_Stringy{string(dAtA[iNdEx:postIndex])} 5624 iNdEx = postIndex 5625 case 35: 5626 if wireType != 2 { 5627 return fmt.Errorf("proto: wrong wireType = %d for field CustomType", wireType) 5628 } 5629 var byteLen int 5630 for shift := uint(0); ; shift += 7 { 5631 if shift >= 64 { 5632 return ErrIntOverflowOne 5633 } 5634 if iNdEx >= l { 5635 return io.ErrUnexpectedEOF 5636 } 5637 b := dAtA[iNdEx] 5638 iNdEx++ 5639 byteLen |= int(b&0x7F) << shift 5640 if b < 0x80 { 5641 break 5642 } 5643 } 5644 if byteLen < 0 { 5645 return ErrInvalidLengthOne 5646 } 5647 postIndex := iNdEx + byteLen 5648 if postIndex < 0 { 5649 return ErrInvalidLengthOne 5650 } 5651 if postIndex > l { 5652 return io.ErrUnexpectedEOF 5653 } 5654 var vv github_com_gogo_protobuf_test_custom.Uint128 5655 v := &vv 5656 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5657 return err 5658 } 5659 m.Custom = &CustomOneof_CustomType{*v} 5660 iNdEx = postIndex 5661 case 36: 5662 if wireType != 0 { 5663 return fmt.Errorf("proto: wrong wireType = %d for field CastType", wireType) 5664 } 5665 var v github_com_gogo_protobuf_test_casttype.MyUint64Type 5666 for shift := uint(0); ; shift += 7 { 5667 if shift >= 64 { 5668 return ErrIntOverflowOne 5669 } 5670 if iNdEx >= l { 5671 return io.ErrUnexpectedEOF 5672 } 5673 b := dAtA[iNdEx] 5674 iNdEx++ 5675 v |= github_com_gogo_protobuf_test_casttype.MyUint64Type(b&0x7F) << shift 5676 if b < 0x80 { 5677 break 5678 } 5679 } 5680 m.Custom = &CustomOneof_CastType{v} 5681 case 37: 5682 if wireType != 0 { 5683 return fmt.Errorf("proto: wrong wireType = %d for field MyCustomName", wireType) 5684 } 5685 var v int64 5686 for shift := uint(0); ; shift += 7 { 5687 if shift >= 64 { 5688 return ErrIntOverflowOne 5689 } 5690 if iNdEx >= l { 5691 return io.ErrUnexpectedEOF 5692 } 5693 b := dAtA[iNdEx] 5694 iNdEx++ 5695 v |= int64(b&0x7F) << shift 5696 if b < 0x80 { 5697 break 5698 } 5699 } 5700 m.Custom = &CustomOneof_MyCustomName{v} 5701 default: 5702 iNdEx = preIndex 5703 skippy, err := skipOne(dAtA[iNdEx:]) 5704 if err != nil { 5705 return err 5706 } 5707 if skippy < 0 { 5708 return ErrInvalidLengthOne 5709 } 5710 if (iNdEx + skippy) < 0 { 5711 return ErrInvalidLengthOne 5712 } 5713 if (iNdEx + skippy) > l { 5714 return io.ErrUnexpectedEOF 5715 } 5716 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5717 iNdEx += skippy 5718 } 5719 } 5720 5721 if iNdEx > l { 5722 return io.ErrUnexpectedEOF 5723 } 5724 return nil 5725} 5726func skipOne(dAtA []byte) (n int, err error) { 5727 l := len(dAtA) 5728 iNdEx := 0 5729 for iNdEx < l { 5730 var wire uint64 5731 for shift := uint(0); ; shift += 7 { 5732 if shift >= 64 { 5733 return 0, ErrIntOverflowOne 5734 } 5735 if iNdEx >= l { 5736 return 0, io.ErrUnexpectedEOF 5737 } 5738 b := dAtA[iNdEx] 5739 iNdEx++ 5740 wire |= (uint64(b) & 0x7F) << shift 5741 if b < 0x80 { 5742 break 5743 } 5744 } 5745 wireType := int(wire & 0x7) 5746 switch wireType { 5747 case 0: 5748 for shift := uint(0); ; shift += 7 { 5749 if shift >= 64 { 5750 return 0, ErrIntOverflowOne 5751 } 5752 if iNdEx >= l { 5753 return 0, io.ErrUnexpectedEOF 5754 } 5755 iNdEx++ 5756 if dAtA[iNdEx-1] < 0x80 { 5757 break 5758 } 5759 } 5760 return iNdEx, nil 5761 case 1: 5762 iNdEx += 8 5763 return iNdEx, nil 5764 case 2: 5765 var length int 5766 for shift := uint(0); ; shift += 7 { 5767 if shift >= 64 { 5768 return 0, ErrIntOverflowOne 5769 } 5770 if iNdEx >= l { 5771 return 0, io.ErrUnexpectedEOF 5772 } 5773 b := dAtA[iNdEx] 5774 iNdEx++ 5775 length |= (int(b) & 0x7F) << shift 5776 if b < 0x80 { 5777 break 5778 } 5779 } 5780 if length < 0 { 5781 return 0, ErrInvalidLengthOne 5782 } 5783 iNdEx += length 5784 if iNdEx < 0 { 5785 return 0, ErrInvalidLengthOne 5786 } 5787 return iNdEx, nil 5788 case 3: 5789 for { 5790 var innerWire uint64 5791 var start int = iNdEx 5792 for shift := uint(0); ; shift += 7 { 5793 if shift >= 64 { 5794 return 0, ErrIntOverflowOne 5795 } 5796 if iNdEx >= l { 5797 return 0, io.ErrUnexpectedEOF 5798 } 5799 b := dAtA[iNdEx] 5800 iNdEx++ 5801 innerWire |= (uint64(b) & 0x7F) << shift 5802 if b < 0x80 { 5803 break 5804 } 5805 } 5806 innerWireType := int(innerWire & 0x7) 5807 if innerWireType == 4 { 5808 break 5809 } 5810 next, err := skipOne(dAtA[start:]) 5811 if err != nil { 5812 return 0, err 5813 } 5814 iNdEx = start + next 5815 if iNdEx < 0 { 5816 return 0, ErrInvalidLengthOne 5817 } 5818 } 5819 return iNdEx, nil 5820 case 4: 5821 return iNdEx, nil 5822 case 5: 5823 iNdEx += 4 5824 return iNdEx, nil 5825 default: 5826 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 5827 } 5828 } 5829 panic("unreachable") 5830} 5831 5832var ( 5833 ErrInvalidLengthOne = fmt.Errorf("proto: negative length found during unmarshaling") 5834 ErrIntOverflowOne = fmt.Errorf("proto: integer overflow") 5835) 5836