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