cosmossdk.io/client/v2@v2.0.0-beta.1/internal/testpb/msg.pulsar.go (about) 1 // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. 2 package testpb 3 4 import ( 5 v1beta11 "cosmossdk.io/api/cosmos/base/query/v1beta1" 6 v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" 7 fmt "fmt" 8 _ "github.com/cosmos/cosmos-proto" 9 runtime "github.com/cosmos/cosmos-proto/runtime" 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoiface "google.golang.org/protobuf/runtime/protoiface" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 durationpb "google.golang.org/protobuf/types/known/durationpb" 14 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 15 io "io" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 var _ protoreflect.List = (*_MsgRequest_21_list)(nil) 21 22 type _MsgRequest_21_list struct { 23 list *[]bool 24 } 25 26 func (x *_MsgRequest_21_list) Len() int { 27 if x.list == nil { 28 return 0 29 } 30 return len(*x.list) 31 } 32 33 func (x *_MsgRequest_21_list) Get(i int) protoreflect.Value { 34 return protoreflect.ValueOfBool((*x.list)[i]) 35 } 36 37 func (x *_MsgRequest_21_list) Set(i int, value protoreflect.Value) { 38 valueUnwrapped := value.Bool() 39 concreteValue := valueUnwrapped 40 (*x.list)[i] = concreteValue 41 } 42 43 func (x *_MsgRequest_21_list) Append(value protoreflect.Value) { 44 valueUnwrapped := value.Bool() 45 concreteValue := valueUnwrapped 46 *x.list = append(*x.list, concreteValue) 47 } 48 49 func (x *_MsgRequest_21_list) AppendMutable() protoreflect.Value { 50 panic(fmt.Errorf("AppendMutable can not be called on message MsgRequest at list field Bools as it is not of Message kind")) 51 } 52 53 func (x *_MsgRequest_21_list) Truncate(n int) { 54 *x.list = (*x.list)[:n] 55 } 56 57 func (x *_MsgRequest_21_list) NewElement() protoreflect.Value { 58 v := false 59 return protoreflect.ValueOfBool(v) 60 } 61 62 func (x *_MsgRequest_21_list) IsValid() bool { 63 return x.list != nil 64 } 65 66 var _ protoreflect.List = (*_MsgRequest_22_list)(nil) 67 68 type _MsgRequest_22_list struct { 69 list *[]uint32 70 } 71 72 func (x *_MsgRequest_22_list) Len() int { 73 if x.list == nil { 74 return 0 75 } 76 return len(*x.list) 77 } 78 79 func (x *_MsgRequest_22_list) Get(i int) protoreflect.Value { 80 return protoreflect.ValueOfUint32((*x.list)[i]) 81 } 82 83 func (x *_MsgRequest_22_list) Set(i int, value protoreflect.Value) { 84 valueUnwrapped := value.Uint() 85 concreteValue := (uint32)(valueUnwrapped) 86 (*x.list)[i] = concreteValue 87 } 88 89 func (x *_MsgRequest_22_list) Append(value protoreflect.Value) { 90 valueUnwrapped := value.Uint() 91 concreteValue := (uint32)(valueUnwrapped) 92 *x.list = append(*x.list, concreteValue) 93 } 94 95 func (x *_MsgRequest_22_list) AppendMutable() protoreflect.Value { 96 panic(fmt.Errorf("AppendMutable can not be called on message MsgRequest at list field Uints as it is not of Message kind")) 97 } 98 99 func (x *_MsgRequest_22_list) Truncate(n int) { 100 *x.list = (*x.list)[:n] 101 } 102 103 func (x *_MsgRequest_22_list) NewElement() protoreflect.Value { 104 v := uint32(0) 105 return protoreflect.ValueOfUint32(v) 106 } 107 108 func (x *_MsgRequest_22_list) IsValid() bool { 109 return x.list != nil 110 } 111 112 var _ protoreflect.List = (*_MsgRequest_23_list)(nil) 113 114 type _MsgRequest_23_list struct { 115 list *[]string 116 } 117 118 func (x *_MsgRequest_23_list) Len() int { 119 if x.list == nil { 120 return 0 121 } 122 return len(*x.list) 123 } 124 125 func (x *_MsgRequest_23_list) Get(i int) protoreflect.Value { 126 return protoreflect.ValueOfString((*x.list)[i]) 127 } 128 129 func (x *_MsgRequest_23_list) Set(i int, value protoreflect.Value) { 130 valueUnwrapped := value.String() 131 concreteValue := valueUnwrapped 132 (*x.list)[i] = concreteValue 133 } 134 135 func (x *_MsgRequest_23_list) Append(value protoreflect.Value) { 136 valueUnwrapped := value.String() 137 concreteValue := valueUnwrapped 138 *x.list = append(*x.list, concreteValue) 139 } 140 141 func (x *_MsgRequest_23_list) AppendMutable() protoreflect.Value { 142 panic(fmt.Errorf("AppendMutable can not be called on message MsgRequest at list field Strings as it is not of Message kind")) 143 } 144 145 func (x *_MsgRequest_23_list) Truncate(n int) { 146 *x.list = (*x.list)[:n] 147 } 148 149 func (x *_MsgRequest_23_list) NewElement() protoreflect.Value { 150 v := "" 151 return protoreflect.ValueOfString(v) 152 } 153 154 func (x *_MsgRequest_23_list) IsValid() bool { 155 return x.list != nil 156 } 157 158 var _ protoreflect.List = (*_MsgRequest_24_list)(nil) 159 160 type _MsgRequest_24_list struct { 161 list *[]Enum 162 } 163 164 func (x *_MsgRequest_24_list) Len() int { 165 if x.list == nil { 166 return 0 167 } 168 return len(*x.list) 169 } 170 171 func (x *_MsgRequest_24_list) Get(i int) protoreflect.Value { 172 return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) 173 } 174 175 func (x *_MsgRequest_24_list) Set(i int, value protoreflect.Value) { 176 valueUnwrapped := value.Enum() 177 concreteValue := (Enum)(valueUnwrapped) 178 (*x.list)[i] = concreteValue 179 } 180 181 func (x *_MsgRequest_24_list) Append(value protoreflect.Value) { 182 valueUnwrapped := value.Enum() 183 concreteValue := (Enum)(valueUnwrapped) 184 *x.list = append(*x.list, concreteValue) 185 } 186 187 func (x *_MsgRequest_24_list) AppendMutable() protoreflect.Value { 188 panic(fmt.Errorf("AppendMutable can not be called on message MsgRequest at list field Enums as it is not of Message kind")) 189 } 190 191 func (x *_MsgRequest_24_list) Truncate(n int) { 192 *x.list = (*x.list)[:n] 193 } 194 195 func (x *_MsgRequest_24_list) NewElement() protoreflect.Value { 196 v := 0 197 return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) 198 } 199 200 func (x *_MsgRequest_24_list) IsValid() bool { 201 return x.list != nil 202 } 203 204 var _ protoreflect.List = (*_MsgRequest_25_list)(nil) 205 206 type _MsgRequest_25_list struct { 207 list *[]*durationpb.Duration 208 } 209 210 func (x *_MsgRequest_25_list) Len() int { 211 if x.list == nil { 212 return 0 213 } 214 return len(*x.list) 215 } 216 217 func (x *_MsgRequest_25_list) Get(i int) protoreflect.Value { 218 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 219 } 220 221 func (x *_MsgRequest_25_list) Set(i int, value protoreflect.Value) { 222 valueUnwrapped := value.Message() 223 concreteValue := valueUnwrapped.Interface().(*durationpb.Duration) 224 (*x.list)[i] = concreteValue 225 } 226 227 func (x *_MsgRequest_25_list) Append(value protoreflect.Value) { 228 valueUnwrapped := value.Message() 229 concreteValue := valueUnwrapped.Interface().(*durationpb.Duration) 230 *x.list = append(*x.list, concreteValue) 231 } 232 233 func (x *_MsgRequest_25_list) AppendMutable() protoreflect.Value { 234 v := new(durationpb.Duration) 235 *x.list = append(*x.list, v) 236 return protoreflect.ValueOfMessage(v.ProtoReflect()) 237 } 238 239 func (x *_MsgRequest_25_list) Truncate(n int) { 240 for i := n; i < len(*x.list); i++ { 241 (*x.list)[i] = nil 242 } 243 *x.list = (*x.list)[:n] 244 } 245 246 func (x *_MsgRequest_25_list) NewElement() protoreflect.Value { 247 v := new(durationpb.Duration) 248 return protoreflect.ValueOfMessage(v.ProtoReflect()) 249 } 250 251 func (x *_MsgRequest_25_list) IsValid() bool { 252 return x.list != nil 253 } 254 255 var _ protoreflect.List = (*_MsgRequest_26_list)(nil) 256 257 type _MsgRequest_26_list struct { 258 list *[]*AMessage 259 } 260 261 func (x *_MsgRequest_26_list) Len() int { 262 if x.list == nil { 263 return 0 264 } 265 return len(*x.list) 266 } 267 268 func (x *_MsgRequest_26_list) Get(i int) protoreflect.Value { 269 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 270 } 271 272 func (x *_MsgRequest_26_list) Set(i int, value protoreflect.Value) { 273 valueUnwrapped := value.Message() 274 concreteValue := valueUnwrapped.Interface().(*AMessage) 275 (*x.list)[i] = concreteValue 276 } 277 278 func (x *_MsgRequest_26_list) Append(value protoreflect.Value) { 279 valueUnwrapped := value.Message() 280 concreteValue := valueUnwrapped.Interface().(*AMessage) 281 *x.list = append(*x.list, concreteValue) 282 } 283 284 func (x *_MsgRequest_26_list) AppendMutable() protoreflect.Value { 285 v := new(AMessage) 286 *x.list = append(*x.list, v) 287 return protoreflect.ValueOfMessage(v.ProtoReflect()) 288 } 289 290 func (x *_MsgRequest_26_list) Truncate(n int) { 291 for i := n; i < len(*x.list); i++ { 292 (*x.list)[i] = nil 293 } 294 *x.list = (*x.list)[:n] 295 } 296 297 func (x *_MsgRequest_26_list) NewElement() protoreflect.Value { 298 v := new(AMessage) 299 return protoreflect.ValueOfMessage(v.ProtoReflect()) 300 } 301 302 func (x *_MsgRequest_26_list) IsValid() bool { 303 return x.list != nil 304 } 305 306 var _ protoreflect.List = (*_MsgRequest_29_list)(nil) 307 308 type _MsgRequest_29_list struct { 309 list *[]*v1beta1.Coin 310 } 311 312 func (x *_MsgRequest_29_list) Len() int { 313 if x.list == nil { 314 return 0 315 } 316 return len(*x.list) 317 } 318 319 func (x *_MsgRequest_29_list) Get(i int) protoreflect.Value { 320 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 321 } 322 323 func (x *_MsgRequest_29_list) Set(i int, value protoreflect.Value) { 324 valueUnwrapped := value.Message() 325 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 326 (*x.list)[i] = concreteValue 327 } 328 329 func (x *_MsgRequest_29_list) Append(value protoreflect.Value) { 330 valueUnwrapped := value.Message() 331 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 332 *x.list = append(*x.list, concreteValue) 333 } 334 335 func (x *_MsgRequest_29_list) AppendMutable() protoreflect.Value { 336 v := new(v1beta1.Coin) 337 *x.list = append(*x.list, v) 338 return protoreflect.ValueOfMessage(v.ProtoReflect()) 339 } 340 341 func (x *_MsgRequest_29_list) Truncate(n int) { 342 for i := n; i < len(*x.list); i++ { 343 (*x.list)[i] = nil 344 } 345 *x.list = (*x.list)[:n] 346 } 347 348 func (x *_MsgRequest_29_list) NewElement() protoreflect.Value { 349 v := new(v1beta1.Coin) 350 return protoreflect.ValueOfMessage(v.ProtoReflect()) 351 } 352 353 func (x *_MsgRequest_29_list) IsValid() bool { 354 return x.list != nil 355 } 356 357 var ( 358 md_MsgRequest protoreflect.MessageDescriptor 359 fd_MsgRequest_u32 protoreflect.FieldDescriptor 360 fd_MsgRequest_u64 protoreflect.FieldDescriptor 361 fd_MsgRequest_str protoreflect.FieldDescriptor 362 fd_MsgRequest_bz protoreflect.FieldDescriptor 363 fd_MsgRequest_timestamp protoreflect.FieldDescriptor 364 fd_MsgRequest_duration protoreflect.FieldDescriptor 365 fd_MsgRequest_i32 protoreflect.FieldDescriptor 366 fd_MsgRequest_i64 protoreflect.FieldDescriptor 367 fd_MsgRequest_a_bool protoreflect.FieldDescriptor 368 fd_MsgRequest_an_enum protoreflect.FieldDescriptor 369 fd_MsgRequest_a_message protoreflect.FieldDescriptor 370 fd_MsgRequest_a_coin protoreflect.FieldDescriptor 371 fd_MsgRequest_an_address protoreflect.FieldDescriptor 372 fd_MsgRequest_page protoreflect.FieldDescriptor 373 fd_MsgRequest_bools protoreflect.FieldDescriptor 374 fd_MsgRequest_uints protoreflect.FieldDescriptor 375 fd_MsgRequest_strings protoreflect.FieldDescriptor 376 fd_MsgRequest_enums protoreflect.FieldDescriptor 377 fd_MsgRequest_durations protoreflect.FieldDescriptor 378 fd_MsgRequest_some_messages protoreflect.FieldDescriptor 379 fd_MsgRequest_positional1 protoreflect.FieldDescriptor 380 fd_MsgRequest_positional2 protoreflect.FieldDescriptor 381 fd_MsgRequest_positional3_varargs protoreflect.FieldDescriptor 382 fd_MsgRequest_deprecated_field protoreflect.FieldDescriptor 383 fd_MsgRequest_shorthand_deprecated_field protoreflect.FieldDescriptor 384 fd_MsgRequest_hidden_bool protoreflect.FieldDescriptor 385 fd_MsgRequest_a_validator_address protoreflect.FieldDescriptor 386 ) 387 388 func init() { 389 file_testpb_msg_proto_init() 390 md_MsgRequest = File_testpb_msg_proto.Messages().ByName("MsgRequest") 391 fd_MsgRequest_u32 = md_MsgRequest.Fields().ByName("u32") 392 fd_MsgRequest_u64 = md_MsgRequest.Fields().ByName("u64") 393 fd_MsgRequest_str = md_MsgRequest.Fields().ByName("str") 394 fd_MsgRequest_bz = md_MsgRequest.Fields().ByName("bz") 395 fd_MsgRequest_timestamp = md_MsgRequest.Fields().ByName("timestamp") 396 fd_MsgRequest_duration = md_MsgRequest.Fields().ByName("duration") 397 fd_MsgRequest_i32 = md_MsgRequest.Fields().ByName("i32") 398 fd_MsgRequest_i64 = md_MsgRequest.Fields().ByName("i64") 399 fd_MsgRequest_a_bool = md_MsgRequest.Fields().ByName("a_bool") 400 fd_MsgRequest_an_enum = md_MsgRequest.Fields().ByName("an_enum") 401 fd_MsgRequest_a_message = md_MsgRequest.Fields().ByName("a_message") 402 fd_MsgRequest_a_coin = md_MsgRequest.Fields().ByName("a_coin") 403 fd_MsgRequest_an_address = md_MsgRequest.Fields().ByName("an_address") 404 fd_MsgRequest_page = md_MsgRequest.Fields().ByName("page") 405 fd_MsgRequest_bools = md_MsgRequest.Fields().ByName("bools") 406 fd_MsgRequest_uints = md_MsgRequest.Fields().ByName("uints") 407 fd_MsgRequest_strings = md_MsgRequest.Fields().ByName("strings") 408 fd_MsgRequest_enums = md_MsgRequest.Fields().ByName("enums") 409 fd_MsgRequest_durations = md_MsgRequest.Fields().ByName("durations") 410 fd_MsgRequest_some_messages = md_MsgRequest.Fields().ByName("some_messages") 411 fd_MsgRequest_positional1 = md_MsgRequest.Fields().ByName("positional1") 412 fd_MsgRequest_positional2 = md_MsgRequest.Fields().ByName("positional2") 413 fd_MsgRequest_positional3_varargs = md_MsgRequest.Fields().ByName("positional3_varargs") 414 fd_MsgRequest_deprecated_field = md_MsgRequest.Fields().ByName("deprecated_field") 415 fd_MsgRequest_shorthand_deprecated_field = md_MsgRequest.Fields().ByName("shorthand_deprecated_field") 416 fd_MsgRequest_hidden_bool = md_MsgRequest.Fields().ByName("hidden_bool") 417 fd_MsgRequest_a_validator_address = md_MsgRequest.Fields().ByName("a_validator_address") 418 } 419 420 var _ protoreflect.Message = (*fastReflection_MsgRequest)(nil) 421 422 type fastReflection_MsgRequest MsgRequest 423 424 func (x *MsgRequest) ProtoReflect() protoreflect.Message { 425 return (*fastReflection_MsgRequest)(x) 426 } 427 428 func (x *MsgRequest) slowProtoReflect() protoreflect.Message { 429 mi := &file_testpb_msg_proto_msgTypes[0] 430 if protoimpl.UnsafeEnabled && x != nil { 431 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 432 if ms.LoadMessageInfo() == nil { 433 ms.StoreMessageInfo(mi) 434 } 435 return ms 436 } 437 return mi.MessageOf(x) 438 } 439 440 var _fastReflection_MsgRequest_messageType fastReflection_MsgRequest_messageType 441 var _ protoreflect.MessageType = fastReflection_MsgRequest_messageType{} 442 443 type fastReflection_MsgRequest_messageType struct{} 444 445 func (x fastReflection_MsgRequest_messageType) Zero() protoreflect.Message { 446 return (*fastReflection_MsgRequest)(nil) 447 } 448 func (x fastReflection_MsgRequest_messageType) New() protoreflect.Message { 449 return new(fastReflection_MsgRequest) 450 } 451 func (x fastReflection_MsgRequest_messageType) Descriptor() protoreflect.MessageDescriptor { 452 return md_MsgRequest 453 } 454 455 // Descriptor returns message descriptor, which contains only the protobuf 456 // type information for the message. 457 func (x *fastReflection_MsgRequest) Descriptor() protoreflect.MessageDescriptor { 458 return md_MsgRequest 459 } 460 461 // Type returns the message type, which encapsulates both Go and protobuf 462 // type information. If the Go type information is not needed, 463 // it is recommended that the message descriptor be used instead. 464 func (x *fastReflection_MsgRequest) Type() protoreflect.MessageType { 465 return _fastReflection_MsgRequest_messageType 466 } 467 468 // New returns a newly allocated and mutable empty message. 469 func (x *fastReflection_MsgRequest) New() protoreflect.Message { 470 return new(fastReflection_MsgRequest) 471 } 472 473 // Interface unwraps the message reflection interface and 474 // returns the underlying ProtoMessage interface. 475 func (x *fastReflection_MsgRequest) Interface() protoreflect.ProtoMessage { 476 return (*MsgRequest)(x) 477 } 478 479 // Range iterates over every populated field in an undefined order, 480 // calling f for each field descriptor and value encountered. 481 // Range returns immediately if f returns false. 482 // While iterating, mutating operations may only be performed 483 // on the current field descriptor. 484 func (x *fastReflection_MsgRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 485 if x.U32 != uint32(0) { 486 value := protoreflect.ValueOfUint32(x.U32) 487 if !f(fd_MsgRequest_u32, value) { 488 return 489 } 490 } 491 if x.U64 != uint64(0) { 492 value := protoreflect.ValueOfUint64(x.U64) 493 if !f(fd_MsgRequest_u64, value) { 494 return 495 } 496 } 497 if x.Str != "" { 498 value := protoreflect.ValueOfString(x.Str) 499 if !f(fd_MsgRequest_str, value) { 500 return 501 } 502 } 503 if len(x.Bz) != 0 { 504 value := protoreflect.ValueOfBytes(x.Bz) 505 if !f(fd_MsgRequest_bz, value) { 506 return 507 } 508 } 509 if x.Timestamp != nil { 510 value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) 511 if !f(fd_MsgRequest_timestamp, value) { 512 return 513 } 514 } 515 if x.Duration != nil { 516 value := protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) 517 if !f(fd_MsgRequest_duration, value) { 518 return 519 } 520 } 521 if x.I32 != int32(0) { 522 value := protoreflect.ValueOfInt32(x.I32) 523 if !f(fd_MsgRequest_i32, value) { 524 return 525 } 526 } 527 if x.I64 != int64(0) { 528 value := protoreflect.ValueOfInt64(x.I64) 529 if !f(fd_MsgRequest_i64, value) { 530 return 531 } 532 } 533 if x.ABool != false { 534 value := protoreflect.ValueOfBool(x.ABool) 535 if !f(fd_MsgRequest_a_bool, value) { 536 return 537 } 538 } 539 if x.AnEnum != 0 { 540 value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.AnEnum)) 541 if !f(fd_MsgRequest_an_enum, value) { 542 return 543 } 544 } 545 if x.AMessage != nil { 546 value := protoreflect.ValueOfMessage(x.AMessage.ProtoReflect()) 547 if !f(fd_MsgRequest_a_message, value) { 548 return 549 } 550 } 551 if x.ACoin != nil { 552 value := protoreflect.ValueOfMessage(x.ACoin.ProtoReflect()) 553 if !f(fd_MsgRequest_a_coin, value) { 554 return 555 } 556 } 557 if x.AnAddress != "" { 558 value := protoreflect.ValueOfString(x.AnAddress) 559 if !f(fd_MsgRequest_an_address, value) { 560 return 561 } 562 } 563 if x.Page != nil { 564 value := protoreflect.ValueOfMessage(x.Page.ProtoReflect()) 565 if !f(fd_MsgRequest_page, value) { 566 return 567 } 568 } 569 if len(x.Bools) != 0 { 570 value := protoreflect.ValueOfList(&_MsgRequest_21_list{list: &x.Bools}) 571 if !f(fd_MsgRequest_bools, value) { 572 return 573 } 574 } 575 if len(x.Uints) != 0 { 576 value := protoreflect.ValueOfList(&_MsgRequest_22_list{list: &x.Uints}) 577 if !f(fd_MsgRequest_uints, value) { 578 return 579 } 580 } 581 if len(x.Strings) != 0 { 582 value := protoreflect.ValueOfList(&_MsgRequest_23_list{list: &x.Strings}) 583 if !f(fd_MsgRequest_strings, value) { 584 return 585 } 586 } 587 if len(x.Enums) != 0 { 588 value := protoreflect.ValueOfList(&_MsgRequest_24_list{list: &x.Enums}) 589 if !f(fd_MsgRequest_enums, value) { 590 return 591 } 592 } 593 if len(x.Durations) != 0 { 594 value := protoreflect.ValueOfList(&_MsgRequest_25_list{list: &x.Durations}) 595 if !f(fd_MsgRequest_durations, value) { 596 return 597 } 598 } 599 if len(x.SomeMessages) != 0 { 600 value := protoreflect.ValueOfList(&_MsgRequest_26_list{list: &x.SomeMessages}) 601 if !f(fd_MsgRequest_some_messages, value) { 602 return 603 } 604 } 605 if x.Positional1 != int32(0) { 606 value := protoreflect.ValueOfInt32(x.Positional1) 607 if !f(fd_MsgRequest_positional1, value) { 608 return 609 } 610 } 611 if x.Positional2 != "" { 612 value := protoreflect.ValueOfString(x.Positional2) 613 if !f(fd_MsgRequest_positional2, value) { 614 return 615 } 616 } 617 if len(x.Positional3Varargs) != 0 { 618 value := protoreflect.ValueOfList(&_MsgRequest_29_list{list: &x.Positional3Varargs}) 619 if !f(fd_MsgRequest_positional3_varargs, value) { 620 return 621 } 622 } 623 if x.DeprecatedField != "" { 624 value := protoreflect.ValueOfString(x.DeprecatedField) 625 if !f(fd_MsgRequest_deprecated_field, value) { 626 return 627 } 628 } 629 if x.ShorthandDeprecatedField != "" { 630 value := protoreflect.ValueOfString(x.ShorthandDeprecatedField) 631 if !f(fd_MsgRequest_shorthand_deprecated_field, value) { 632 return 633 } 634 } 635 if x.HiddenBool != false { 636 value := protoreflect.ValueOfBool(x.HiddenBool) 637 if !f(fd_MsgRequest_hidden_bool, value) { 638 return 639 } 640 } 641 if x.AValidatorAddress != "" { 642 value := protoreflect.ValueOfString(x.AValidatorAddress) 643 if !f(fd_MsgRequest_a_validator_address, value) { 644 return 645 } 646 } 647 } 648 649 // Has reports whether a field is populated. 650 // 651 // Some fields have the property of nullability where it is possible to 652 // distinguish between the default value of a field and whether the field 653 // was explicitly populated with the default value. Singular message fields, 654 // member fields of a oneof, and proto2 scalar fields are nullable. Such 655 // fields are populated only if explicitly set. 656 // 657 // In other cases (aside from the nullable cases above), 658 // a proto3 scalar field is populated if it contains a non-zero value, and 659 // a repeated field is populated if it is non-empty. 660 func (x *fastReflection_MsgRequest) Has(fd protoreflect.FieldDescriptor) bool { 661 switch fd.FullName() { 662 case "testpb.MsgRequest.u32": 663 return x.U32 != uint32(0) 664 case "testpb.MsgRequest.u64": 665 return x.U64 != uint64(0) 666 case "testpb.MsgRequest.str": 667 return x.Str != "" 668 case "testpb.MsgRequest.bz": 669 return len(x.Bz) != 0 670 case "testpb.MsgRequest.timestamp": 671 return x.Timestamp != nil 672 case "testpb.MsgRequest.duration": 673 return x.Duration != nil 674 case "testpb.MsgRequest.i32": 675 return x.I32 != int32(0) 676 case "testpb.MsgRequest.i64": 677 return x.I64 != int64(0) 678 case "testpb.MsgRequest.a_bool": 679 return x.ABool != false 680 case "testpb.MsgRequest.an_enum": 681 return x.AnEnum != 0 682 case "testpb.MsgRequest.a_message": 683 return x.AMessage != nil 684 case "testpb.MsgRequest.a_coin": 685 return x.ACoin != nil 686 case "testpb.MsgRequest.an_address": 687 return x.AnAddress != "" 688 case "testpb.MsgRequest.page": 689 return x.Page != nil 690 case "testpb.MsgRequest.bools": 691 return len(x.Bools) != 0 692 case "testpb.MsgRequest.uints": 693 return len(x.Uints) != 0 694 case "testpb.MsgRequest.strings": 695 return len(x.Strings) != 0 696 case "testpb.MsgRequest.enums": 697 return len(x.Enums) != 0 698 case "testpb.MsgRequest.durations": 699 return len(x.Durations) != 0 700 case "testpb.MsgRequest.some_messages": 701 return len(x.SomeMessages) != 0 702 case "testpb.MsgRequest.positional1": 703 return x.Positional1 != int32(0) 704 case "testpb.MsgRequest.positional2": 705 return x.Positional2 != "" 706 case "testpb.MsgRequest.positional3_varargs": 707 return len(x.Positional3Varargs) != 0 708 case "testpb.MsgRequest.deprecated_field": 709 return x.DeprecatedField != "" 710 case "testpb.MsgRequest.shorthand_deprecated_field": 711 return x.ShorthandDeprecatedField != "" 712 case "testpb.MsgRequest.hidden_bool": 713 return x.HiddenBool != false 714 case "testpb.MsgRequest.a_validator_address": 715 return x.AValidatorAddress != "" 716 default: 717 if fd.IsExtension() { 718 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) 719 } 720 panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) 721 } 722 } 723 724 // Clear clears the field such that a subsequent Has call reports false. 725 // 726 // Clearing an extension field clears both the extension type and value 727 // associated with the given field number. 728 // 729 // Clear is a mutating operation and unsafe for concurrent use. 730 func (x *fastReflection_MsgRequest) Clear(fd protoreflect.FieldDescriptor) { 731 switch fd.FullName() { 732 case "testpb.MsgRequest.u32": 733 x.U32 = uint32(0) 734 case "testpb.MsgRequest.u64": 735 x.U64 = uint64(0) 736 case "testpb.MsgRequest.str": 737 x.Str = "" 738 case "testpb.MsgRequest.bz": 739 x.Bz = nil 740 case "testpb.MsgRequest.timestamp": 741 x.Timestamp = nil 742 case "testpb.MsgRequest.duration": 743 x.Duration = nil 744 case "testpb.MsgRequest.i32": 745 x.I32 = int32(0) 746 case "testpb.MsgRequest.i64": 747 x.I64 = int64(0) 748 case "testpb.MsgRequest.a_bool": 749 x.ABool = false 750 case "testpb.MsgRequest.an_enum": 751 x.AnEnum = 0 752 case "testpb.MsgRequest.a_message": 753 x.AMessage = nil 754 case "testpb.MsgRequest.a_coin": 755 x.ACoin = nil 756 case "testpb.MsgRequest.an_address": 757 x.AnAddress = "" 758 case "testpb.MsgRequest.page": 759 x.Page = nil 760 case "testpb.MsgRequest.bools": 761 x.Bools = nil 762 case "testpb.MsgRequest.uints": 763 x.Uints = nil 764 case "testpb.MsgRequest.strings": 765 x.Strings = nil 766 case "testpb.MsgRequest.enums": 767 x.Enums = nil 768 case "testpb.MsgRequest.durations": 769 x.Durations = nil 770 case "testpb.MsgRequest.some_messages": 771 x.SomeMessages = nil 772 case "testpb.MsgRequest.positional1": 773 x.Positional1 = int32(0) 774 case "testpb.MsgRequest.positional2": 775 x.Positional2 = "" 776 case "testpb.MsgRequest.positional3_varargs": 777 x.Positional3Varargs = nil 778 case "testpb.MsgRequest.deprecated_field": 779 x.DeprecatedField = "" 780 case "testpb.MsgRequest.shorthand_deprecated_field": 781 x.ShorthandDeprecatedField = "" 782 case "testpb.MsgRequest.hidden_bool": 783 x.HiddenBool = false 784 case "testpb.MsgRequest.a_validator_address": 785 x.AValidatorAddress = "" 786 default: 787 if fd.IsExtension() { 788 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) 789 } 790 panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) 791 } 792 } 793 794 // Get retrieves the value for a field. 795 // 796 // For unpopulated scalars, it returns the default value, where 797 // the default value of a bytes scalar is guaranteed to be a copy. 798 // For unpopulated composite types, it returns an empty, read-only view 799 // of the value; to obtain a mutable reference, use Mutable. 800 func (x *fastReflection_MsgRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { 801 switch descriptor.FullName() { 802 case "testpb.MsgRequest.u32": 803 value := x.U32 804 return protoreflect.ValueOfUint32(value) 805 case "testpb.MsgRequest.u64": 806 value := x.U64 807 return protoreflect.ValueOfUint64(value) 808 case "testpb.MsgRequest.str": 809 value := x.Str 810 return protoreflect.ValueOfString(value) 811 case "testpb.MsgRequest.bz": 812 value := x.Bz 813 return protoreflect.ValueOfBytes(value) 814 case "testpb.MsgRequest.timestamp": 815 value := x.Timestamp 816 return protoreflect.ValueOfMessage(value.ProtoReflect()) 817 case "testpb.MsgRequest.duration": 818 value := x.Duration 819 return protoreflect.ValueOfMessage(value.ProtoReflect()) 820 case "testpb.MsgRequest.i32": 821 value := x.I32 822 return protoreflect.ValueOfInt32(value) 823 case "testpb.MsgRequest.i64": 824 value := x.I64 825 return protoreflect.ValueOfInt64(value) 826 case "testpb.MsgRequest.a_bool": 827 value := x.ABool 828 return protoreflect.ValueOfBool(value) 829 case "testpb.MsgRequest.an_enum": 830 value := x.AnEnum 831 return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) 832 case "testpb.MsgRequest.a_message": 833 value := x.AMessage 834 return protoreflect.ValueOfMessage(value.ProtoReflect()) 835 case "testpb.MsgRequest.a_coin": 836 value := x.ACoin 837 return protoreflect.ValueOfMessage(value.ProtoReflect()) 838 case "testpb.MsgRequest.an_address": 839 value := x.AnAddress 840 return protoreflect.ValueOfString(value) 841 case "testpb.MsgRequest.page": 842 value := x.Page 843 return protoreflect.ValueOfMessage(value.ProtoReflect()) 844 case "testpb.MsgRequest.bools": 845 if len(x.Bools) == 0 { 846 return protoreflect.ValueOfList(&_MsgRequest_21_list{}) 847 } 848 listValue := &_MsgRequest_21_list{list: &x.Bools} 849 return protoreflect.ValueOfList(listValue) 850 case "testpb.MsgRequest.uints": 851 if len(x.Uints) == 0 { 852 return protoreflect.ValueOfList(&_MsgRequest_22_list{}) 853 } 854 listValue := &_MsgRequest_22_list{list: &x.Uints} 855 return protoreflect.ValueOfList(listValue) 856 case "testpb.MsgRequest.strings": 857 if len(x.Strings) == 0 { 858 return protoreflect.ValueOfList(&_MsgRequest_23_list{}) 859 } 860 listValue := &_MsgRequest_23_list{list: &x.Strings} 861 return protoreflect.ValueOfList(listValue) 862 case "testpb.MsgRequest.enums": 863 if len(x.Enums) == 0 { 864 return protoreflect.ValueOfList(&_MsgRequest_24_list{}) 865 } 866 listValue := &_MsgRequest_24_list{list: &x.Enums} 867 return protoreflect.ValueOfList(listValue) 868 case "testpb.MsgRequest.durations": 869 if len(x.Durations) == 0 { 870 return protoreflect.ValueOfList(&_MsgRequest_25_list{}) 871 } 872 listValue := &_MsgRequest_25_list{list: &x.Durations} 873 return protoreflect.ValueOfList(listValue) 874 case "testpb.MsgRequest.some_messages": 875 if len(x.SomeMessages) == 0 { 876 return protoreflect.ValueOfList(&_MsgRequest_26_list{}) 877 } 878 listValue := &_MsgRequest_26_list{list: &x.SomeMessages} 879 return protoreflect.ValueOfList(listValue) 880 case "testpb.MsgRequest.positional1": 881 value := x.Positional1 882 return protoreflect.ValueOfInt32(value) 883 case "testpb.MsgRequest.positional2": 884 value := x.Positional2 885 return protoreflect.ValueOfString(value) 886 case "testpb.MsgRequest.positional3_varargs": 887 if len(x.Positional3Varargs) == 0 { 888 return protoreflect.ValueOfList(&_MsgRequest_29_list{}) 889 } 890 listValue := &_MsgRequest_29_list{list: &x.Positional3Varargs} 891 return protoreflect.ValueOfList(listValue) 892 case "testpb.MsgRequest.deprecated_field": 893 value := x.DeprecatedField 894 return protoreflect.ValueOfString(value) 895 case "testpb.MsgRequest.shorthand_deprecated_field": 896 value := x.ShorthandDeprecatedField 897 return protoreflect.ValueOfString(value) 898 case "testpb.MsgRequest.hidden_bool": 899 value := x.HiddenBool 900 return protoreflect.ValueOfBool(value) 901 case "testpb.MsgRequest.a_validator_address": 902 value := x.AValidatorAddress 903 return protoreflect.ValueOfString(value) 904 default: 905 if descriptor.IsExtension() { 906 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) 907 } 908 panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", descriptor.FullName())) 909 } 910 } 911 912 // Set stores the value for a field. 913 // 914 // For a field belonging to a oneof, it implicitly clears any other field 915 // that may be currently set within the same oneof. 916 // For extension fields, it implicitly stores the provided ExtensionType. 917 // When setting a composite type, it is unspecified whether the stored value 918 // aliases the source's memory in any way. If the composite value is an 919 // empty, read-only value, then it panics. 920 // 921 // Set is a mutating operation and unsafe for concurrent use. 922 func (x *fastReflection_MsgRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { 923 switch fd.FullName() { 924 case "testpb.MsgRequest.u32": 925 x.U32 = uint32(value.Uint()) 926 case "testpb.MsgRequest.u64": 927 x.U64 = value.Uint() 928 case "testpb.MsgRequest.str": 929 x.Str = value.Interface().(string) 930 case "testpb.MsgRequest.bz": 931 x.Bz = value.Bytes() 932 case "testpb.MsgRequest.timestamp": 933 x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) 934 case "testpb.MsgRequest.duration": 935 x.Duration = value.Message().Interface().(*durationpb.Duration) 936 case "testpb.MsgRequest.i32": 937 x.I32 = int32(value.Int()) 938 case "testpb.MsgRequest.i64": 939 x.I64 = value.Int() 940 case "testpb.MsgRequest.a_bool": 941 x.ABool = value.Bool() 942 case "testpb.MsgRequest.an_enum": 943 x.AnEnum = (Enum)(value.Enum()) 944 case "testpb.MsgRequest.a_message": 945 x.AMessage = value.Message().Interface().(*AMessage) 946 case "testpb.MsgRequest.a_coin": 947 x.ACoin = value.Message().Interface().(*v1beta1.Coin) 948 case "testpb.MsgRequest.an_address": 949 x.AnAddress = value.Interface().(string) 950 case "testpb.MsgRequest.page": 951 x.Page = value.Message().Interface().(*v1beta11.PageRequest) 952 case "testpb.MsgRequest.bools": 953 lv := value.List() 954 clv := lv.(*_MsgRequest_21_list) 955 x.Bools = *clv.list 956 case "testpb.MsgRequest.uints": 957 lv := value.List() 958 clv := lv.(*_MsgRequest_22_list) 959 x.Uints = *clv.list 960 case "testpb.MsgRequest.strings": 961 lv := value.List() 962 clv := lv.(*_MsgRequest_23_list) 963 x.Strings = *clv.list 964 case "testpb.MsgRequest.enums": 965 lv := value.List() 966 clv := lv.(*_MsgRequest_24_list) 967 x.Enums = *clv.list 968 case "testpb.MsgRequest.durations": 969 lv := value.List() 970 clv := lv.(*_MsgRequest_25_list) 971 x.Durations = *clv.list 972 case "testpb.MsgRequest.some_messages": 973 lv := value.List() 974 clv := lv.(*_MsgRequest_26_list) 975 x.SomeMessages = *clv.list 976 case "testpb.MsgRequest.positional1": 977 x.Positional1 = int32(value.Int()) 978 case "testpb.MsgRequest.positional2": 979 x.Positional2 = value.Interface().(string) 980 case "testpb.MsgRequest.positional3_varargs": 981 lv := value.List() 982 clv := lv.(*_MsgRequest_29_list) 983 x.Positional3Varargs = *clv.list 984 case "testpb.MsgRequest.deprecated_field": 985 x.DeprecatedField = value.Interface().(string) 986 case "testpb.MsgRequest.shorthand_deprecated_field": 987 x.ShorthandDeprecatedField = value.Interface().(string) 988 case "testpb.MsgRequest.hidden_bool": 989 x.HiddenBool = value.Bool() 990 case "testpb.MsgRequest.a_validator_address": 991 x.AValidatorAddress = value.Interface().(string) 992 default: 993 if fd.IsExtension() { 994 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) 995 } 996 panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) 997 } 998 } 999 1000 // Mutable returns a mutable reference to a composite type. 1001 // 1002 // If the field is unpopulated, it may allocate a composite value. 1003 // For a field belonging to a oneof, it implicitly clears any other field 1004 // that may be currently set within the same oneof. 1005 // For extension fields, it implicitly stores the provided ExtensionType 1006 // if not already stored. 1007 // It panics if the field does not contain a composite type. 1008 // 1009 // Mutable is a mutating operation and unsafe for concurrent use. 1010 func (x *fastReflection_MsgRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { 1011 switch fd.FullName() { 1012 case "testpb.MsgRequest.timestamp": 1013 if x.Timestamp == nil { 1014 x.Timestamp = new(timestamppb.Timestamp) 1015 } 1016 return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) 1017 case "testpb.MsgRequest.duration": 1018 if x.Duration == nil { 1019 x.Duration = new(durationpb.Duration) 1020 } 1021 return protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) 1022 case "testpb.MsgRequest.a_message": 1023 if x.AMessage == nil { 1024 x.AMessage = new(AMessage) 1025 } 1026 return protoreflect.ValueOfMessage(x.AMessage.ProtoReflect()) 1027 case "testpb.MsgRequest.a_coin": 1028 if x.ACoin == nil { 1029 x.ACoin = new(v1beta1.Coin) 1030 } 1031 return protoreflect.ValueOfMessage(x.ACoin.ProtoReflect()) 1032 case "testpb.MsgRequest.page": 1033 if x.Page == nil { 1034 x.Page = new(v1beta11.PageRequest) 1035 } 1036 return protoreflect.ValueOfMessage(x.Page.ProtoReflect()) 1037 case "testpb.MsgRequest.bools": 1038 if x.Bools == nil { 1039 x.Bools = []bool{} 1040 } 1041 value := &_MsgRequest_21_list{list: &x.Bools} 1042 return protoreflect.ValueOfList(value) 1043 case "testpb.MsgRequest.uints": 1044 if x.Uints == nil { 1045 x.Uints = []uint32{} 1046 } 1047 value := &_MsgRequest_22_list{list: &x.Uints} 1048 return protoreflect.ValueOfList(value) 1049 case "testpb.MsgRequest.strings": 1050 if x.Strings == nil { 1051 x.Strings = []string{} 1052 } 1053 value := &_MsgRequest_23_list{list: &x.Strings} 1054 return protoreflect.ValueOfList(value) 1055 case "testpb.MsgRequest.enums": 1056 if x.Enums == nil { 1057 x.Enums = []Enum{} 1058 } 1059 value := &_MsgRequest_24_list{list: &x.Enums} 1060 return protoreflect.ValueOfList(value) 1061 case "testpb.MsgRequest.durations": 1062 if x.Durations == nil { 1063 x.Durations = []*durationpb.Duration{} 1064 } 1065 value := &_MsgRequest_25_list{list: &x.Durations} 1066 return protoreflect.ValueOfList(value) 1067 case "testpb.MsgRequest.some_messages": 1068 if x.SomeMessages == nil { 1069 x.SomeMessages = []*AMessage{} 1070 } 1071 value := &_MsgRequest_26_list{list: &x.SomeMessages} 1072 return protoreflect.ValueOfList(value) 1073 case "testpb.MsgRequest.positional3_varargs": 1074 if x.Positional3Varargs == nil { 1075 x.Positional3Varargs = []*v1beta1.Coin{} 1076 } 1077 value := &_MsgRequest_29_list{list: &x.Positional3Varargs} 1078 return protoreflect.ValueOfList(value) 1079 case "testpb.MsgRequest.u32": 1080 panic(fmt.Errorf("field u32 of message testpb.MsgRequest is not mutable")) 1081 case "testpb.MsgRequest.u64": 1082 panic(fmt.Errorf("field u64 of message testpb.MsgRequest is not mutable")) 1083 case "testpb.MsgRequest.str": 1084 panic(fmt.Errorf("field str of message testpb.MsgRequest is not mutable")) 1085 case "testpb.MsgRequest.bz": 1086 panic(fmt.Errorf("field bz of message testpb.MsgRequest is not mutable")) 1087 case "testpb.MsgRequest.i32": 1088 panic(fmt.Errorf("field i32 of message testpb.MsgRequest is not mutable")) 1089 case "testpb.MsgRequest.i64": 1090 panic(fmt.Errorf("field i64 of message testpb.MsgRequest is not mutable")) 1091 case "testpb.MsgRequest.a_bool": 1092 panic(fmt.Errorf("field a_bool of message testpb.MsgRequest is not mutable")) 1093 case "testpb.MsgRequest.an_enum": 1094 panic(fmt.Errorf("field an_enum of message testpb.MsgRequest is not mutable")) 1095 case "testpb.MsgRequest.an_address": 1096 panic(fmt.Errorf("field an_address of message testpb.MsgRequest is not mutable")) 1097 case "testpb.MsgRequest.positional1": 1098 panic(fmt.Errorf("field positional1 of message testpb.MsgRequest is not mutable")) 1099 case "testpb.MsgRequest.positional2": 1100 panic(fmt.Errorf("field positional2 of message testpb.MsgRequest is not mutable")) 1101 case "testpb.MsgRequest.deprecated_field": 1102 panic(fmt.Errorf("field deprecated_field of message testpb.MsgRequest is not mutable")) 1103 case "testpb.MsgRequest.shorthand_deprecated_field": 1104 panic(fmt.Errorf("field shorthand_deprecated_field of message testpb.MsgRequest is not mutable")) 1105 case "testpb.MsgRequest.hidden_bool": 1106 panic(fmt.Errorf("field hidden_bool of message testpb.MsgRequest is not mutable")) 1107 case "testpb.MsgRequest.a_validator_address": 1108 panic(fmt.Errorf("field a_validator_address of message testpb.MsgRequest is not mutable")) 1109 default: 1110 if fd.IsExtension() { 1111 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) 1112 } 1113 panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) 1114 } 1115 } 1116 1117 // NewField returns a new value that is assignable to the field 1118 // for the given descriptor. For scalars, this returns the default value. 1119 // For lists, maps, and messages, this returns a new, empty, mutable value. 1120 func (x *fastReflection_MsgRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { 1121 switch fd.FullName() { 1122 case "testpb.MsgRequest.u32": 1123 return protoreflect.ValueOfUint32(uint32(0)) 1124 case "testpb.MsgRequest.u64": 1125 return protoreflect.ValueOfUint64(uint64(0)) 1126 case "testpb.MsgRequest.str": 1127 return protoreflect.ValueOfString("") 1128 case "testpb.MsgRequest.bz": 1129 return protoreflect.ValueOfBytes(nil) 1130 case "testpb.MsgRequest.timestamp": 1131 m := new(timestamppb.Timestamp) 1132 return protoreflect.ValueOfMessage(m.ProtoReflect()) 1133 case "testpb.MsgRequest.duration": 1134 m := new(durationpb.Duration) 1135 return protoreflect.ValueOfMessage(m.ProtoReflect()) 1136 case "testpb.MsgRequest.i32": 1137 return protoreflect.ValueOfInt32(int32(0)) 1138 case "testpb.MsgRequest.i64": 1139 return protoreflect.ValueOfInt64(int64(0)) 1140 case "testpb.MsgRequest.a_bool": 1141 return protoreflect.ValueOfBool(false) 1142 case "testpb.MsgRequest.an_enum": 1143 return protoreflect.ValueOfEnum(0) 1144 case "testpb.MsgRequest.a_message": 1145 m := new(AMessage) 1146 return protoreflect.ValueOfMessage(m.ProtoReflect()) 1147 case "testpb.MsgRequest.a_coin": 1148 m := new(v1beta1.Coin) 1149 return protoreflect.ValueOfMessage(m.ProtoReflect()) 1150 case "testpb.MsgRequest.an_address": 1151 return protoreflect.ValueOfString("") 1152 case "testpb.MsgRequest.page": 1153 m := new(v1beta11.PageRequest) 1154 return protoreflect.ValueOfMessage(m.ProtoReflect()) 1155 case "testpb.MsgRequest.bools": 1156 list := []bool{} 1157 return protoreflect.ValueOfList(&_MsgRequest_21_list{list: &list}) 1158 case "testpb.MsgRequest.uints": 1159 list := []uint32{} 1160 return protoreflect.ValueOfList(&_MsgRequest_22_list{list: &list}) 1161 case "testpb.MsgRequest.strings": 1162 list := []string{} 1163 return protoreflect.ValueOfList(&_MsgRequest_23_list{list: &list}) 1164 case "testpb.MsgRequest.enums": 1165 list := []Enum{} 1166 return protoreflect.ValueOfList(&_MsgRequest_24_list{list: &list}) 1167 case "testpb.MsgRequest.durations": 1168 list := []*durationpb.Duration{} 1169 return protoreflect.ValueOfList(&_MsgRequest_25_list{list: &list}) 1170 case "testpb.MsgRequest.some_messages": 1171 list := []*AMessage{} 1172 return protoreflect.ValueOfList(&_MsgRequest_26_list{list: &list}) 1173 case "testpb.MsgRequest.positional1": 1174 return protoreflect.ValueOfInt32(int32(0)) 1175 case "testpb.MsgRequest.positional2": 1176 return protoreflect.ValueOfString("") 1177 case "testpb.MsgRequest.positional3_varargs": 1178 list := []*v1beta1.Coin{} 1179 return protoreflect.ValueOfList(&_MsgRequest_29_list{list: &list}) 1180 case "testpb.MsgRequest.deprecated_field": 1181 return protoreflect.ValueOfString("") 1182 case "testpb.MsgRequest.shorthand_deprecated_field": 1183 return protoreflect.ValueOfString("") 1184 case "testpb.MsgRequest.hidden_bool": 1185 return protoreflect.ValueOfBool(false) 1186 case "testpb.MsgRequest.a_validator_address": 1187 return protoreflect.ValueOfString("") 1188 default: 1189 if fd.IsExtension() { 1190 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) 1191 } 1192 panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) 1193 } 1194 } 1195 1196 // WhichOneof reports which field within the oneof is populated, 1197 // returning nil if none are populated. 1198 // It panics if the oneof descriptor does not belong to this message. 1199 func (x *fastReflection_MsgRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { 1200 switch d.FullName() { 1201 default: 1202 panic(fmt.Errorf("%s is not a oneof field in testpb.MsgRequest", d.FullName())) 1203 } 1204 panic("unreachable") 1205 } 1206 1207 // GetUnknown retrieves the entire list of unknown fields. 1208 // The caller may only mutate the contents of the RawFields 1209 // if the mutated bytes are stored back into the message with SetUnknown. 1210 func (x *fastReflection_MsgRequest) GetUnknown() protoreflect.RawFields { 1211 return x.unknownFields 1212 } 1213 1214 // SetUnknown stores an entire list of unknown fields. 1215 // The raw fields must be syntactically valid according to the wire format. 1216 // An implementation may panic if this is not the case. 1217 // Once stored, the caller must not mutate the content of the RawFields. 1218 // An empty RawFields may be passed to clear the fields. 1219 // 1220 // SetUnknown is a mutating operation and unsafe for concurrent use. 1221 func (x *fastReflection_MsgRequest) SetUnknown(fields protoreflect.RawFields) { 1222 x.unknownFields = fields 1223 } 1224 1225 // IsValid reports whether the message is valid. 1226 // 1227 // An invalid message is an empty, read-only value. 1228 // 1229 // An invalid message often corresponds to a nil pointer of the concrete 1230 // message type, but the details are implementation dependent. 1231 // Validity is not part of the protobuf data model, and may not 1232 // be preserved in marshaling or other operations. 1233 func (x *fastReflection_MsgRequest) IsValid() bool { 1234 return x != nil 1235 } 1236 1237 // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. 1238 // This method may return nil. 1239 // 1240 // The returned methods type is identical to 1241 // "google.golang.org/protobuf/runtime/protoiface".Methods. 1242 // Consult the protoiface package documentation for details. 1243 func (x *fastReflection_MsgRequest) ProtoMethods() *protoiface.Methods { 1244 size := func(input protoiface.SizeInput) protoiface.SizeOutput { 1245 x := input.Message.Interface().(*MsgRequest) 1246 if x == nil { 1247 return protoiface.SizeOutput{ 1248 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1249 Size: 0, 1250 } 1251 } 1252 options := runtime.SizeInputToOptions(input) 1253 _ = options 1254 var n int 1255 var l int 1256 _ = l 1257 if x.U32 != 0 { 1258 n += 1 + runtime.Sov(uint64(x.U32)) 1259 } 1260 if x.U64 != 0 { 1261 n += 1 + runtime.Sov(uint64(x.U64)) 1262 } 1263 l = len(x.Str) 1264 if l > 0 { 1265 n += 1 + l + runtime.Sov(uint64(l)) 1266 } 1267 l = len(x.Bz) 1268 if l > 0 { 1269 n += 1 + l + runtime.Sov(uint64(l)) 1270 } 1271 if x.Timestamp != nil { 1272 l = options.Size(x.Timestamp) 1273 n += 1 + l + runtime.Sov(uint64(l)) 1274 } 1275 if x.Duration != nil { 1276 l = options.Size(x.Duration) 1277 n += 1 + l + runtime.Sov(uint64(l)) 1278 } 1279 if x.I32 != 0 { 1280 n += 1 + runtime.Sov(uint64(x.I32)) 1281 } 1282 if x.I64 != 0 { 1283 n += 1 + runtime.Sov(uint64(x.I64)) 1284 } 1285 if x.ABool { 1286 n += 2 1287 } 1288 if x.AnEnum != 0 { 1289 n += 2 + runtime.Sov(uint64(x.AnEnum)) 1290 } 1291 if x.AMessage != nil { 1292 l = options.Size(x.AMessage) 1293 n += 2 + l + runtime.Sov(uint64(l)) 1294 } 1295 if x.ACoin != nil { 1296 l = options.Size(x.ACoin) 1297 n += 2 + l + runtime.Sov(uint64(l)) 1298 } 1299 l = len(x.AnAddress) 1300 if l > 0 { 1301 n += 2 + l + runtime.Sov(uint64(l)) 1302 } 1303 if x.Page != nil { 1304 l = options.Size(x.Page) 1305 n += 2 + l + runtime.Sov(uint64(l)) 1306 } 1307 if len(x.Bools) > 0 { 1308 n += 2 + runtime.Sov(uint64(len(x.Bools))) + len(x.Bools)*1 1309 } 1310 if len(x.Uints) > 0 { 1311 l = 0 1312 for _, e := range x.Uints { 1313 l += runtime.Sov(uint64(e)) 1314 } 1315 n += 2 + runtime.Sov(uint64(l)) + l 1316 } 1317 if len(x.Strings) > 0 { 1318 for _, s := range x.Strings { 1319 l = len(s) 1320 n += 2 + l + runtime.Sov(uint64(l)) 1321 } 1322 } 1323 if len(x.Enums) > 0 { 1324 l = 0 1325 for _, e := range x.Enums { 1326 l += runtime.Sov(uint64(e)) 1327 } 1328 n += 2 + runtime.Sov(uint64(l)) + l 1329 } 1330 if len(x.Durations) > 0 { 1331 for _, e := range x.Durations { 1332 l = options.Size(e) 1333 n += 2 + l + runtime.Sov(uint64(l)) 1334 } 1335 } 1336 if len(x.SomeMessages) > 0 { 1337 for _, e := range x.SomeMessages { 1338 l = options.Size(e) 1339 n += 2 + l + runtime.Sov(uint64(l)) 1340 } 1341 } 1342 if x.Positional1 != 0 { 1343 n += 2 + runtime.Sov(uint64(x.Positional1)) 1344 } 1345 l = len(x.Positional2) 1346 if l > 0 { 1347 n += 2 + l + runtime.Sov(uint64(l)) 1348 } 1349 if len(x.Positional3Varargs) > 0 { 1350 for _, e := range x.Positional3Varargs { 1351 l = options.Size(e) 1352 n += 2 + l + runtime.Sov(uint64(l)) 1353 } 1354 } 1355 l = len(x.DeprecatedField) 1356 if l > 0 { 1357 n += 2 + l + runtime.Sov(uint64(l)) 1358 } 1359 l = len(x.ShorthandDeprecatedField) 1360 if l > 0 { 1361 n += 2 + l + runtime.Sov(uint64(l)) 1362 } 1363 if x.HiddenBool { 1364 n += 3 1365 } 1366 l = len(x.AValidatorAddress) 1367 if l > 0 { 1368 n += 2 + l + runtime.Sov(uint64(l)) 1369 } 1370 if x.unknownFields != nil { 1371 n += len(x.unknownFields) 1372 } 1373 return protoiface.SizeOutput{ 1374 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1375 Size: n, 1376 } 1377 } 1378 1379 marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { 1380 x := input.Message.Interface().(*MsgRequest) 1381 if x == nil { 1382 return protoiface.MarshalOutput{ 1383 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1384 Buf: input.Buf, 1385 }, nil 1386 } 1387 options := runtime.MarshalInputToOptions(input) 1388 _ = options 1389 size := options.Size(x) 1390 dAtA := make([]byte, size) 1391 i := len(dAtA) 1392 _ = i 1393 var l int 1394 _ = l 1395 if x.unknownFields != nil { 1396 i -= len(x.unknownFields) 1397 copy(dAtA[i:], x.unknownFields) 1398 } 1399 if len(x.AValidatorAddress) > 0 { 1400 i -= len(x.AValidatorAddress) 1401 copy(dAtA[i:], x.AValidatorAddress) 1402 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AValidatorAddress))) 1403 i-- 1404 dAtA[i] = 0x2 1405 i-- 1406 dAtA[i] = 0x8a 1407 } 1408 if x.HiddenBool { 1409 i-- 1410 if x.HiddenBool { 1411 dAtA[i] = 1 1412 } else { 1413 dAtA[i] = 0 1414 } 1415 i-- 1416 dAtA[i] = 0x2 1417 i-- 1418 dAtA[i] = 0x80 1419 } 1420 if len(x.ShorthandDeprecatedField) > 0 { 1421 i -= len(x.ShorthandDeprecatedField) 1422 copy(dAtA[i:], x.ShorthandDeprecatedField) 1423 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ShorthandDeprecatedField))) 1424 i-- 1425 dAtA[i] = 0x1 1426 i-- 1427 dAtA[i] = 0xfa 1428 } 1429 if len(x.DeprecatedField) > 0 { 1430 i -= len(x.DeprecatedField) 1431 copy(dAtA[i:], x.DeprecatedField) 1432 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DeprecatedField))) 1433 i-- 1434 dAtA[i] = 0x1 1435 i-- 1436 dAtA[i] = 0xf2 1437 } 1438 if len(x.Positional3Varargs) > 0 { 1439 for iNdEx := len(x.Positional3Varargs) - 1; iNdEx >= 0; iNdEx-- { 1440 encoded, err := options.Marshal(x.Positional3Varargs[iNdEx]) 1441 if err != nil { 1442 return protoiface.MarshalOutput{ 1443 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1444 Buf: input.Buf, 1445 }, err 1446 } 1447 i -= len(encoded) 1448 copy(dAtA[i:], encoded) 1449 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1450 i-- 1451 dAtA[i] = 0x1 1452 i-- 1453 dAtA[i] = 0xea 1454 } 1455 } 1456 if len(x.Positional2) > 0 { 1457 i -= len(x.Positional2) 1458 copy(dAtA[i:], x.Positional2) 1459 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Positional2))) 1460 i-- 1461 dAtA[i] = 0x1 1462 i-- 1463 dAtA[i] = 0xe2 1464 } 1465 if x.Positional1 != 0 { 1466 i = runtime.EncodeVarint(dAtA, i, uint64(x.Positional1)) 1467 i-- 1468 dAtA[i] = 0x1 1469 i-- 1470 dAtA[i] = 0xd8 1471 } 1472 if len(x.SomeMessages) > 0 { 1473 for iNdEx := len(x.SomeMessages) - 1; iNdEx >= 0; iNdEx-- { 1474 encoded, err := options.Marshal(x.SomeMessages[iNdEx]) 1475 if err != nil { 1476 return protoiface.MarshalOutput{ 1477 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1478 Buf: input.Buf, 1479 }, err 1480 } 1481 i -= len(encoded) 1482 copy(dAtA[i:], encoded) 1483 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1484 i-- 1485 dAtA[i] = 0x1 1486 i-- 1487 dAtA[i] = 0xd2 1488 } 1489 } 1490 if len(x.Durations) > 0 { 1491 for iNdEx := len(x.Durations) - 1; iNdEx >= 0; iNdEx-- { 1492 encoded, err := options.Marshal(x.Durations[iNdEx]) 1493 if err != nil { 1494 return protoiface.MarshalOutput{ 1495 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1496 Buf: input.Buf, 1497 }, err 1498 } 1499 i -= len(encoded) 1500 copy(dAtA[i:], encoded) 1501 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1502 i-- 1503 dAtA[i] = 0x1 1504 i-- 1505 dAtA[i] = 0xca 1506 } 1507 } 1508 if len(x.Enums) > 0 { 1509 var pksize2 int 1510 for _, num := range x.Enums { 1511 pksize2 += runtime.Sov(uint64(num)) 1512 } 1513 i -= pksize2 1514 j1 := i 1515 for _, num1 := range x.Enums { 1516 num := uint64(num1) 1517 for num >= 1<<7 { 1518 dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) 1519 num >>= 7 1520 j1++ 1521 } 1522 dAtA[j1] = uint8(num) 1523 j1++ 1524 } 1525 i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) 1526 i-- 1527 dAtA[i] = 0x1 1528 i-- 1529 dAtA[i] = 0xc2 1530 } 1531 if len(x.Strings) > 0 { 1532 for iNdEx := len(x.Strings) - 1; iNdEx >= 0; iNdEx-- { 1533 i -= len(x.Strings[iNdEx]) 1534 copy(dAtA[i:], x.Strings[iNdEx]) 1535 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Strings[iNdEx]))) 1536 i-- 1537 dAtA[i] = 0x1 1538 i-- 1539 dAtA[i] = 0xba 1540 } 1541 } 1542 if len(x.Uints) > 0 { 1543 var pksize4 int 1544 for _, num := range x.Uints { 1545 pksize4 += runtime.Sov(uint64(num)) 1546 } 1547 i -= pksize4 1548 j3 := i 1549 for _, num := range x.Uints { 1550 for num >= 1<<7 { 1551 dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) 1552 num >>= 7 1553 j3++ 1554 } 1555 dAtA[j3] = uint8(num) 1556 j3++ 1557 } 1558 i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) 1559 i-- 1560 dAtA[i] = 0x1 1561 i-- 1562 dAtA[i] = 0xb2 1563 } 1564 if len(x.Bools) > 0 { 1565 for iNdEx := len(x.Bools) - 1; iNdEx >= 0; iNdEx-- { 1566 i-- 1567 if x.Bools[iNdEx] { 1568 dAtA[i] = 1 1569 } else { 1570 dAtA[i] = 0 1571 } 1572 } 1573 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bools))) 1574 i-- 1575 dAtA[i] = 0x1 1576 i-- 1577 dAtA[i] = 0xaa 1578 } 1579 if x.Page != nil { 1580 encoded, err := options.Marshal(x.Page) 1581 if err != nil { 1582 return protoiface.MarshalOutput{ 1583 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1584 Buf: input.Buf, 1585 }, err 1586 } 1587 i -= len(encoded) 1588 copy(dAtA[i:], encoded) 1589 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1590 i-- 1591 dAtA[i] = 0x1 1592 i-- 1593 dAtA[i] = 0xa2 1594 } 1595 if len(x.AnAddress) > 0 { 1596 i -= len(x.AnAddress) 1597 copy(dAtA[i:], x.AnAddress) 1598 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AnAddress))) 1599 i-- 1600 dAtA[i] = 0x1 1601 i-- 1602 dAtA[i] = 0x9a 1603 } 1604 if x.ACoin != nil { 1605 encoded, err := options.Marshal(x.ACoin) 1606 if err != nil { 1607 return protoiface.MarshalOutput{ 1608 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1609 Buf: input.Buf, 1610 }, err 1611 } 1612 i -= len(encoded) 1613 copy(dAtA[i:], encoded) 1614 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1615 i-- 1616 dAtA[i] = 0x1 1617 i-- 1618 dAtA[i] = 0x92 1619 } 1620 if x.AMessage != nil { 1621 encoded, err := options.Marshal(x.AMessage) 1622 if err != nil { 1623 return protoiface.MarshalOutput{ 1624 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1625 Buf: input.Buf, 1626 }, err 1627 } 1628 i -= len(encoded) 1629 copy(dAtA[i:], encoded) 1630 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1631 i-- 1632 dAtA[i] = 0x1 1633 i-- 1634 dAtA[i] = 0x8a 1635 } 1636 if x.AnEnum != 0 { 1637 i = runtime.EncodeVarint(dAtA, i, uint64(x.AnEnum)) 1638 i-- 1639 dAtA[i] = 0x1 1640 i-- 1641 dAtA[i] = 0x80 1642 } 1643 if x.ABool { 1644 i-- 1645 if x.ABool { 1646 dAtA[i] = 1 1647 } else { 1648 dAtA[i] = 0 1649 } 1650 i-- 1651 dAtA[i] = 0x78 1652 } 1653 if x.I64 != 0 { 1654 i = runtime.EncodeVarint(dAtA, i, uint64(x.I64)) 1655 i-- 1656 dAtA[i] = 0x50 1657 } 1658 if x.I32 != 0 { 1659 i = runtime.EncodeVarint(dAtA, i, uint64(x.I32)) 1660 i-- 1661 dAtA[i] = 0x38 1662 } 1663 if x.Duration != nil { 1664 encoded, err := options.Marshal(x.Duration) 1665 if err != nil { 1666 return protoiface.MarshalOutput{ 1667 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1668 Buf: input.Buf, 1669 }, err 1670 } 1671 i -= len(encoded) 1672 copy(dAtA[i:], encoded) 1673 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1674 i-- 1675 dAtA[i] = 0x32 1676 } 1677 if x.Timestamp != nil { 1678 encoded, err := options.Marshal(x.Timestamp) 1679 if err != nil { 1680 return protoiface.MarshalOutput{ 1681 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1682 Buf: input.Buf, 1683 }, err 1684 } 1685 i -= len(encoded) 1686 copy(dAtA[i:], encoded) 1687 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 1688 i-- 1689 dAtA[i] = 0x2a 1690 } 1691 if len(x.Bz) > 0 { 1692 i -= len(x.Bz) 1693 copy(dAtA[i:], x.Bz) 1694 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bz))) 1695 i-- 1696 dAtA[i] = 0x22 1697 } 1698 if len(x.Str) > 0 { 1699 i -= len(x.Str) 1700 copy(dAtA[i:], x.Str) 1701 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Str))) 1702 i-- 1703 dAtA[i] = 0x1a 1704 } 1705 if x.U64 != 0 { 1706 i = runtime.EncodeVarint(dAtA, i, uint64(x.U64)) 1707 i-- 1708 dAtA[i] = 0x10 1709 } 1710 if x.U32 != 0 { 1711 i = runtime.EncodeVarint(dAtA, i, uint64(x.U32)) 1712 i-- 1713 dAtA[i] = 0x8 1714 } 1715 if input.Buf != nil { 1716 input.Buf = append(input.Buf, dAtA...) 1717 } else { 1718 input.Buf = dAtA 1719 } 1720 return protoiface.MarshalOutput{ 1721 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1722 Buf: input.Buf, 1723 }, nil 1724 } 1725 unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { 1726 x := input.Message.Interface().(*MsgRequest) 1727 if x == nil { 1728 return protoiface.UnmarshalOutput{ 1729 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 1730 Flags: input.Flags, 1731 }, nil 1732 } 1733 options := runtime.UnmarshalInputToOptions(input) 1734 _ = options 1735 dAtA := input.Buf 1736 l := len(dAtA) 1737 iNdEx := 0 1738 for iNdEx < l { 1739 preIndex := iNdEx 1740 var wire uint64 1741 for shift := uint(0); ; shift += 7 { 1742 if shift >= 64 { 1743 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1744 } 1745 if iNdEx >= l { 1746 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1747 } 1748 b := dAtA[iNdEx] 1749 iNdEx++ 1750 wire |= uint64(b&0x7F) << shift 1751 if b < 0x80 { 1752 break 1753 } 1754 } 1755 fieldNum := int32(wire >> 3) 1756 wireType := int(wire & 0x7) 1757 if wireType == 4 { 1758 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequest: wiretype end group for non-group") 1759 } 1760 if fieldNum <= 0 { 1761 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1762 } 1763 switch fieldNum { 1764 case 1: 1765 if wireType != 0 { 1766 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field U32", wireType) 1767 } 1768 x.U32 = 0 1769 for shift := uint(0); ; shift += 7 { 1770 if shift >= 64 { 1771 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1772 } 1773 if iNdEx >= l { 1774 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1775 } 1776 b := dAtA[iNdEx] 1777 iNdEx++ 1778 x.U32 |= uint32(b&0x7F) << shift 1779 if b < 0x80 { 1780 break 1781 } 1782 } 1783 case 2: 1784 if wireType != 0 { 1785 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field U64", wireType) 1786 } 1787 x.U64 = 0 1788 for shift := uint(0); ; shift += 7 { 1789 if shift >= 64 { 1790 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1791 } 1792 if iNdEx >= l { 1793 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1794 } 1795 b := dAtA[iNdEx] 1796 iNdEx++ 1797 x.U64 |= uint64(b&0x7F) << shift 1798 if b < 0x80 { 1799 break 1800 } 1801 } 1802 case 3: 1803 if wireType != 2 { 1804 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Str", wireType) 1805 } 1806 var stringLen uint64 1807 for shift := uint(0); ; shift += 7 { 1808 if shift >= 64 { 1809 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1810 } 1811 if iNdEx >= l { 1812 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1813 } 1814 b := dAtA[iNdEx] 1815 iNdEx++ 1816 stringLen |= uint64(b&0x7F) << shift 1817 if b < 0x80 { 1818 break 1819 } 1820 } 1821 intStringLen := int(stringLen) 1822 if intStringLen < 0 { 1823 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1824 } 1825 postIndex := iNdEx + intStringLen 1826 if postIndex < 0 { 1827 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1828 } 1829 if postIndex > l { 1830 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1831 } 1832 x.Str = string(dAtA[iNdEx:postIndex]) 1833 iNdEx = postIndex 1834 case 4: 1835 if wireType != 2 { 1836 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bz", wireType) 1837 } 1838 var byteLen int 1839 for shift := uint(0); ; shift += 7 { 1840 if shift >= 64 { 1841 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1842 } 1843 if iNdEx >= l { 1844 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1845 } 1846 b := dAtA[iNdEx] 1847 iNdEx++ 1848 byteLen |= int(b&0x7F) << shift 1849 if b < 0x80 { 1850 break 1851 } 1852 } 1853 if byteLen < 0 { 1854 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1855 } 1856 postIndex := iNdEx + byteLen 1857 if postIndex < 0 { 1858 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1859 } 1860 if postIndex > l { 1861 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1862 } 1863 x.Bz = append(x.Bz[:0], dAtA[iNdEx:postIndex]...) 1864 if x.Bz == nil { 1865 x.Bz = []byte{} 1866 } 1867 iNdEx = postIndex 1868 case 5: 1869 if wireType != 2 { 1870 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 1871 } 1872 var msglen int 1873 for shift := uint(0); ; shift += 7 { 1874 if shift >= 64 { 1875 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1876 } 1877 if iNdEx >= l { 1878 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1879 } 1880 b := dAtA[iNdEx] 1881 iNdEx++ 1882 msglen |= int(b&0x7F) << shift 1883 if b < 0x80 { 1884 break 1885 } 1886 } 1887 if msglen < 0 { 1888 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1889 } 1890 postIndex := iNdEx + msglen 1891 if postIndex < 0 { 1892 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1893 } 1894 if postIndex > l { 1895 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1896 } 1897 if x.Timestamp == nil { 1898 x.Timestamp = ×tamppb.Timestamp{} 1899 } 1900 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { 1901 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 1902 } 1903 iNdEx = postIndex 1904 case 6: 1905 if wireType != 2 { 1906 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) 1907 } 1908 var msglen int 1909 for shift := uint(0); ; shift += 7 { 1910 if shift >= 64 { 1911 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1912 } 1913 if iNdEx >= l { 1914 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1915 } 1916 b := dAtA[iNdEx] 1917 iNdEx++ 1918 msglen |= int(b&0x7F) << shift 1919 if b < 0x80 { 1920 break 1921 } 1922 } 1923 if msglen < 0 { 1924 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1925 } 1926 postIndex := iNdEx + msglen 1927 if postIndex < 0 { 1928 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 1929 } 1930 if postIndex > l { 1931 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1932 } 1933 if x.Duration == nil { 1934 x.Duration = &durationpb.Duration{} 1935 } 1936 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Duration); err != nil { 1937 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 1938 } 1939 iNdEx = postIndex 1940 case 7: 1941 if wireType != 0 { 1942 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field I32", wireType) 1943 } 1944 x.I32 = 0 1945 for shift := uint(0); ; shift += 7 { 1946 if shift >= 64 { 1947 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1948 } 1949 if iNdEx >= l { 1950 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1951 } 1952 b := dAtA[iNdEx] 1953 iNdEx++ 1954 x.I32 |= int32(b&0x7F) << shift 1955 if b < 0x80 { 1956 break 1957 } 1958 } 1959 case 10: 1960 if wireType != 0 { 1961 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field I64", wireType) 1962 } 1963 x.I64 = 0 1964 for shift := uint(0); ; shift += 7 { 1965 if shift >= 64 { 1966 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1967 } 1968 if iNdEx >= l { 1969 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1970 } 1971 b := dAtA[iNdEx] 1972 iNdEx++ 1973 x.I64 |= int64(b&0x7F) << shift 1974 if b < 0x80 { 1975 break 1976 } 1977 } 1978 case 15: 1979 if wireType != 0 { 1980 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ABool", wireType) 1981 } 1982 var v int 1983 for shift := uint(0); ; shift += 7 { 1984 if shift >= 64 { 1985 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 1986 } 1987 if iNdEx >= l { 1988 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 1989 } 1990 b := dAtA[iNdEx] 1991 iNdEx++ 1992 v |= int(b&0x7F) << shift 1993 if b < 0x80 { 1994 break 1995 } 1996 } 1997 x.ABool = bool(v != 0) 1998 case 16: 1999 if wireType != 0 { 2000 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnEnum", wireType) 2001 } 2002 x.AnEnum = 0 2003 for shift := uint(0); ; shift += 7 { 2004 if shift >= 64 { 2005 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2006 } 2007 if iNdEx >= l { 2008 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2009 } 2010 b := dAtA[iNdEx] 2011 iNdEx++ 2012 x.AnEnum |= Enum(b&0x7F) << shift 2013 if b < 0x80 { 2014 break 2015 } 2016 } 2017 case 17: 2018 if wireType != 2 { 2019 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AMessage", wireType) 2020 } 2021 var msglen int 2022 for shift := uint(0); ; shift += 7 { 2023 if shift >= 64 { 2024 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2025 } 2026 if iNdEx >= l { 2027 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2028 } 2029 b := dAtA[iNdEx] 2030 iNdEx++ 2031 msglen |= int(b&0x7F) << shift 2032 if b < 0x80 { 2033 break 2034 } 2035 } 2036 if msglen < 0 { 2037 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2038 } 2039 postIndex := iNdEx + msglen 2040 if postIndex < 0 { 2041 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2042 } 2043 if postIndex > l { 2044 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2045 } 2046 if x.AMessage == nil { 2047 x.AMessage = &AMessage{} 2048 } 2049 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AMessage); err != nil { 2050 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2051 } 2052 iNdEx = postIndex 2053 case 18: 2054 if wireType != 2 { 2055 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ACoin", wireType) 2056 } 2057 var msglen int 2058 for shift := uint(0); ; shift += 7 { 2059 if shift >= 64 { 2060 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2061 } 2062 if iNdEx >= l { 2063 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2064 } 2065 b := dAtA[iNdEx] 2066 iNdEx++ 2067 msglen |= int(b&0x7F) << shift 2068 if b < 0x80 { 2069 break 2070 } 2071 } 2072 if msglen < 0 { 2073 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2074 } 2075 postIndex := iNdEx + msglen 2076 if postIndex < 0 { 2077 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2078 } 2079 if postIndex > l { 2080 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2081 } 2082 if x.ACoin == nil { 2083 x.ACoin = &v1beta1.Coin{} 2084 } 2085 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ACoin); err != nil { 2086 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2087 } 2088 iNdEx = postIndex 2089 case 19: 2090 if wireType != 2 { 2091 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnAddress", wireType) 2092 } 2093 var stringLen uint64 2094 for shift := uint(0); ; shift += 7 { 2095 if shift >= 64 { 2096 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2097 } 2098 if iNdEx >= l { 2099 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2100 } 2101 b := dAtA[iNdEx] 2102 iNdEx++ 2103 stringLen |= uint64(b&0x7F) << shift 2104 if b < 0x80 { 2105 break 2106 } 2107 } 2108 intStringLen := int(stringLen) 2109 if intStringLen < 0 { 2110 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2111 } 2112 postIndex := iNdEx + intStringLen 2113 if postIndex < 0 { 2114 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2115 } 2116 if postIndex > l { 2117 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2118 } 2119 x.AnAddress = string(dAtA[iNdEx:postIndex]) 2120 iNdEx = postIndex 2121 case 20: 2122 if wireType != 2 { 2123 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) 2124 } 2125 var msglen int 2126 for shift := uint(0); ; shift += 7 { 2127 if shift >= 64 { 2128 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2129 } 2130 if iNdEx >= l { 2131 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2132 } 2133 b := dAtA[iNdEx] 2134 iNdEx++ 2135 msglen |= int(b&0x7F) << shift 2136 if b < 0x80 { 2137 break 2138 } 2139 } 2140 if msglen < 0 { 2141 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2142 } 2143 postIndex := iNdEx + msglen 2144 if postIndex < 0 { 2145 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2146 } 2147 if postIndex > l { 2148 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2149 } 2150 if x.Page == nil { 2151 x.Page = &v1beta11.PageRequest{} 2152 } 2153 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Page); err != nil { 2154 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2155 } 2156 iNdEx = postIndex 2157 case 21: 2158 if wireType == 0 { 2159 var v int 2160 for shift := uint(0); ; shift += 7 { 2161 if shift >= 64 { 2162 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2163 } 2164 if iNdEx >= l { 2165 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2166 } 2167 b := dAtA[iNdEx] 2168 iNdEx++ 2169 v |= int(b&0x7F) << shift 2170 if b < 0x80 { 2171 break 2172 } 2173 } 2174 x.Bools = append(x.Bools, bool(v != 0)) 2175 } else if wireType == 2 { 2176 var packedLen int 2177 for shift := uint(0); ; shift += 7 { 2178 if shift >= 64 { 2179 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2180 } 2181 if iNdEx >= l { 2182 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2183 } 2184 b := dAtA[iNdEx] 2185 iNdEx++ 2186 packedLen |= int(b&0x7F) << shift 2187 if b < 0x80 { 2188 break 2189 } 2190 } 2191 if packedLen < 0 { 2192 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2193 } 2194 postIndex := iNdEx + packedLen 2195 if postIndex < 0 { 2196 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2197 } 2198 if postIndex > l { 2199 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2200 } 2201 var elementCount int 2202 elementCount = packedLen 2203 if elementCount != 0 && len(x.Bools) == 0 { 2204 x.Bools = make([]bool, 0, elementCount) 2205 } 2206 for iNdEx < postIndex { 2207 var v int 2208 for shift := uint(0); ; shift += 7 { 2209 if shift >= 64 { 2210 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2211 } 2212 if iNdEx >= l { 2213 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2214 } 2215 b := dAtA[iNdEx] 2216 iNdEx++ 2217 v |= int(b&0x7F) << shift 2218 if b < 0x80 { 2219 break 2220 } 2221 } 2222 x.Bools = append(x.Bools, bool(v != 0)) 2223 } 2224 } else { 2225 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bools", wireType) 2226 } 2227 case 22: 2228 if wireType == 0 { 2229 var v uint32 2230 for shift := uint(0); ; shift += 7 { 2231 if shift >= 64 { 2232 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2233 } 2234 if iNdEx >= l { 2235 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2236 } 2237 b := dAtA[iNdEx] 2238 iNdEx++ 2239 v |= uint32(b&0x7F) << shift 2240 if b < 0x80 { 2241 break 2242 } 2243 } 2244 x.Uints = append(x.Uints, v) 2245 } else if wireType == 2 { 2246 var packedLen int 2247 for shift := uint(0); ; shift += 7 { 2248 if shift >= 64 { 2249 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2250 } 2251 if iNdEx >= l { 2252 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2253 } 2254 b := dAtA[iNdEx] 2255 iNdEx++ 2256 packedLen |= int(b&0x7F) << shift 2257 if b < 0x80 { 2258 break 2259 } 2260 } 2261 if packedLen < 0 { 2262 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2263 } 2264 postIndex := iNdEx + packedLen 2265 if postIndex < 0 { 2266 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2267 } 2268 if postIndex > l { 2269 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2270 } 2271 var elementCount int 2272 var count int 2273 for _, integer := range dAtA[iNdEx:postIndex] { 2274 if integer < 128 { 2275 count++ 2276 } 2277 } 2278 elementCount = count 2279 if elementCount != 0 && len(x.Uints) == 0 { 2280 x.Uints = make([]uint32, 0, elementCount) 2281 } 2282 for iNdEx < postIndex { 2283 var v uint32 2284 for shift := uint(0); ; shift += 7 { 2285 if shift >= 64 { 2286 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2287 } 2288 if iNdEx >= l { 2289 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2290 } 2291 b := dAtA[iNdEx] 2292 iNdEx++ 2293 v |= uint32(b&0x7F) << shift 2294 if b < 0x80 { 2295 break 2296 } 2297 } 2298 x.Uints = append(x.Uints, v) 2299 } 2300 } else { 2301 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Uints", wireType) 2302 } 2303 case 23: 2304 if wireType != 2 { 2305 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Strings", wireType) 2306 } 2307 var stringLen uint64 2308 for shift := uint(0); ; shift += 7 { 2309 if shift >= 64 { 2310 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2311 } 2312 if iNdEx >= l { 2313 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2314 } 2315 b := dAtA[iNdEx] 2316 iNdEx++ 2317 stringLen |= uint64(b&0x7F) << shift 2318 if b < 0x80 { 2319 break 2320 } 2321 } 2322 intStringLen := int(stringLen) 2323 if intStringLen < 0 { 2324 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2325 } 2326 postIndex := iNdEx + intStringLen 2327 if postIndex < 0 { 2328 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2329 } 2330 if postIndex > l { 2331 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2332 } 2333 x.Strings = append(x.Strings, string(dAtA[iNdEx:postIndex])) 2334 iNdEx = postIndex 2335 case 24: 2336 if wireType == 0 { 2337 var v Enum 2338 for shift := uint(0); ; shift += 7 { 2339 if shift >= 64 { 2340 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2341 } 2342 if iNdEx >= l { 2343 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2344 } 2345 b := dAtA[iNdEx] 2346 iNdEx++ 2347 v |= Enum(b&0x7F) << shift 2348 if b < 0x80 { 2349 break 2350 } 2351 } 2352 x.Enums = append(x.Enums, v) 2353 } else if wireType == 2 { 2354 var packedLen int 2355 for shift := uint(0); ; shift += 7 { 2356 if shift >= 64 { 2357 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2358 } 2359 if iNdEx >= l { 2360 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2361 } 2362 b := dAtA[iNdEx] 2363 iNdEx++ 2364 packedLen |= int(b&0x7F) << shift 2365 if b < 0x80 { 2366 break 2367 } 2368 } 2369 if packedLen < 0 { 2370 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2371 } 2372 postIndex := iNdEx + packedLen 2373 if postIndex < 0 { 2374 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2375 } 2376 if postIndex > l { 2377 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2378 } 2379 var elementCount int 2380 if elementCount != 0 && len(x.Enums) == 0 { 2381 x.Enums = make([]Enum, 0, elementCount) 2382 } 2383 for iNdEx < postIndex { 2384 var v Enum 2385 for shift := uint(0); ; shift += 7 { 2386 if shift >= 64 { 2387 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2388 } 2389 if iNdEx >= l { 2390 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2391 } 2392 b := dAtA[iNdEx] 2393 iNdEx++ 2394 v |= Enum(b&0x7F) << shift 2395 if b < 0x80 { 2396 break 2397 } 2398 } 2399 x.Enums = append(x.Enums, v) 2400 } 2401 } else { 2402 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enums", wireType) 2403 } 2404 case 25: 2405 if wireType != 2 { 2406 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Durations", wireType) 2407 } 2408 var msglen int 2409 for shift := uint(0); ; shift += 7 { 2410 if shift >= 64 { 2411 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2412 } 2413 if iNdEx >= l { 2414 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2415 } 2416 b := dAtA[iNdEx] 2417 iNdEx++ 2418 msglen |= int(b&0x7F) << shift 2419 if b < 0x80 { 2420 break 2421 } 2422 } 2423 if msglen < 0 { 2424 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2425 } 2426 postIndex := iNdEx + msglen 2427 if postIndex < 0 { 2428 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2429 } 2430 if postIndex > l { 2431 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2432 } 2433 x.Durations = append(x.Durations, &durationpb.Duration{}) 2434 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Durations[len(x.Durations)-1]); err != nil { 2435 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2436 } 2437 iNdEx = postIndex 2438 case 26: 2439 if wireType != 2 { 2440 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SomeMessages", wireType) 2441 } 2442 var msglen int 2443 for shift := uint(0); ; shift += 7 { 2444 if shift >= 64 { 2445 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2446 } 2447 if iNdEx >= l { 2448 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2449 } 2450 b := dAtA[iNdEx] 2451 iNdEx++ 2452 msglen |= int(b&0x7F) << shift 2453 if b < 0x80 { 2454 break 2455 } 2456 } 2457 if msglen < 0 { 2458 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2459 } 2460 postIndex := iNdEx + msglen 2461 if postIndex < 0 { 2462 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2463 } 2464 if postIndex > l { 2465 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2466 } 2467 x.SomeMessages = append(x.SomeMessages, &AMessage{}) 2468 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SomeMessages[len(x.SomeMessages)-1]); err != nil { 2469 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2470 } 2471 iNdEx = postIndex 2472 case 27: 2473 if wireType != 0 { 2474 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Positional1", wireType) 2475 } 2476 x.Positional1 = 0 2477 for shift := uint(0); ; shift += 7 { 2478 if shift >= 64 { 2479 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2480 } 2481 if iNdEx >= l { 2482 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2483 } 2484 b := dAtA[iNdEx] 2485 iNdEx++ 2486 x.Positional1 |= int32(b&0x7F) << shift 2487 if b < 0x80 { 2488 break 2489 } 2490 } 2491 case 28: 2492 if wireType != 2 { 2493 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Positional2", wireType) 2494 } 2495 var stringLen uint64 2496 for shift := uint(0); ; shift += 7 { 2497 if shift >= 64 { 2498 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2499 } 2500 if iNdEx >= l { 2501 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2502 } 2503 b := dAtA[iNdEx] 2504 iNdEx++ 2505 stringLen |= uint64(b&0x7F) << shift 2506 if b < 0x80 { 2507 break 2508 } 2509 } 2510 intStringLen := int(stringLen) 2511 if intStringLen < 0 { 2512 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2513 } 2514 postIndex := iNdEx + intStringLen 2515 if postIndex < 0 { 2516 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2517 } 2518 if postIndex > l { 2519 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2520 } 2521 x.Positional2 = string(dAtA[iNdEx:postIndex]) 2522 iNdEx = postIndex 2523 case 29: 2524 if wireType != 2 { 2525 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Positional3Varargs", wireType) 2526 } 2527 var msglen int 2528 for shift := uint(0); ; shift += 7 { 2529 if shift >= 64 { 2530 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2531 } 2532 if iNdEx >= l { 2533 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2534 } 2535 b := dAtA[iNdEx] 2536 iNdEx++ 2537 msglen |= int(b&0x7F) << shift 2538 if b < 0x80 { 2539 break 2540 } 2541 } 2542 if msglen < 0 { 2543 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2544 } 2545 postIndex := iNdEx + msglen 2546 if postIndex < 0 { 2547 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2548 } 2549 if postIndex > l { 2550 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2551 } 2552 x.Positional3Varargs = append(x.Positional3Varargs, &v1beta1.Coin{}) 2553 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Positional3Varargs[len(x.Positional3Varargs)-1]); err != nil { 2554 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2555 } 2556 iNdEx = postIndex 2557 case 30: 2558 if wireType != 2 { 2559 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DeprecatedField", wireType) 2560 } 2561 var stringLen uint64 2562 for shift := uint(0); ; shift += 7 { 2563 if shift >= 64 { 2564 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2565 } 2566 if iNdEx >= l { 2567 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2568 } 2569 b := dAtA[iNdEx] 2570 iNdEx++ 2571 stringLen |= uint64(b&0x7F) << shift 2572 if b < 0x80 { 2573 break 2574 } 2575 } 2576 intStringLen := int(stringLen) 2577 if intStringLen < 0 { 2578 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2579 } 2580 postIndex := iNdEx + intStringLen 2581 if postIndex < 0 { 2582 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2583 } 2584 if postIndex > l { 2585 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2586 } 2587 x.DeprecatedField = string(dAtA[iNdEx:postIndex]) 2588 iNdEx = postIndex 2589 case 31: 2590 if wireType != 2 { 2591 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ShorthandDeprecatedField", wireType) 2592 } 2593 var stringLen uint64 2594 for shift := uint(0); ; shift += 7 { 2595 if shift >= 64 { 2596 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2597 } 2598 if iNdEx >= l { 2599 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2600 } 2601 b := dAtA[iNdEx] 2602 iNdEx++ 2603 stringLen |= uint64(b&0x7F) << shift 2604 if b < 0x80 { 2605 break 2606 } 2607 } 2608 intStringLen := int(stringLen) 2609 if intStringLen < 0 { 2610 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2611 } 2612 postIndex := iNdEx + intStringLen 2613 if postIndex < 0 { 2614 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2615 } 2616 if postIndex > l { 2617 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2618 } 2619 x.ShorthandDeprecatedField = string(dAtA[iNdEx:postIndex]) 2620 iNdEx = postIndex 2621 case 32: 2622 if wireType != 0 { 2623 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HiddenBool", wireType) 2624 } 2625 var v int 2626 for shift := uint(0); ; shift += 7 { 2627 if shift >= 64 { 2628 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2629 } 2630 if iNdEx >= l { 2631 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2632 } 2633 b := dAtA[iNdEx] 2634 iNdEx++ 2635 v |= int(b&0x7F) << shift 2636 if b < 0x80 { 2637 break 2638 } 2639 } 2640 x.HiddenBool = bool(v != 0) 2641 case 33: 2642 if wireType != 2 { 2643 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AValidatorAddress", wireType) 2644 } 2645 var stringLen uint64 2646 for shift := uint(0); ; shift += 7 { 2647 if shift >= 64 { 2648 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2649 } 2650 if iNdEx >= l { 2651 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2652 } 2653 b := dAtA[iNdEx] 2654 iNdEx++ 2655 stringLen |= uint64(b&0x7F) << shift 2656 if b < 0x80 { 2657 break 2658 } 2659 } 2660 intStringLen := int(stringLen) 2661 if intStringLen < 0 { 2662 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2663 } 2664 postIndex := iNdEx + intStringLen 2665 if postIndex < 0 { 2666 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2667 } 2668 if postIndex > l { 2669 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2670 } 2671 x.AValidatorAddress = string(dAtA[iNdEx:postIndex]) 2672 iNdEx = postIndex 2673 default: 2674 iNdEx = preIndex 2675 skippy, err := runtime.Skip(dAtA[iNdEx:]) 2676 if err != nil { 2677 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 2678 } 2679 if (skippy < 0) || (iNdEx+skippy) < 0 { 2680 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2681 } 2682 if (iNdEx + skippy) > l { 2683 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2684 } 2685 if !options.DiscardUnknown { 2686 x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 2687 } 2688 iNdEx += skippy 2689 } 2690 } 2691 2692 if iNdEx > l { 2693 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2694 } 2695 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil 2696 } 2697 return &protoiface.Methods{ 2698 NoUnkeyedLiterals: struct{}{}, 2699 Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, 2700 Size: size, 2701 Marshal: marshal, 2702 Unmarshal: unmarshal, 2703 Merge: nil, 2704 CheckInitialized: nil, 2705 } 2706 } 2707 2708 var ( 2709 md_MsgResponse protoreflect.MessageDescriptor 2710 fd_MsgResponse_request protoreflect.FieldDescriptor 2711 ) 2712 2713 func init() { 2714 file_testpb_msg_proto_init() 2715 md_MsgResponse = File_testpb_msg_proto.Messages().ByName("MsgResponse") 2716 fd_MsgResponse_request = md_MsgResponse.Fields().ByName("request") 2717 } 2718 2719 var _ protoreflect.Message = (*fastReflection_MsgResponse)(nil) 2720 2721 type fastReflection_MsgResponse MsgResponse 2722 2723 func (x *MsgResponse) ProtoReflect() protoreflect.Message { 2724 return (*fastReflection_MsgResponse)(x) 2725 } 2726 2727 func (x *MsgResponse) slowProtoReflect() protoreflect.Message { 2728 mi := &file_testpb_msg_proto_msgTypes[1] 2729 if protoimpl.UnsafeEnabled && x != nil { 2730 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 2731 if ms.LoadMessageInfo() == nil { 2732 ms.StoreMessageInfo(mi) 2733 } 2734 return ms 2735 } 2736 return mi.MessageOf(x) 2737 } 2738 2739 var _fastReflection_MsgResponse_messageType fastReflection_MsgResponse_messageType 2740 var _ protoreflect.MessageType = fastReflection_MsgResponse_messageType{} 2741 2742 type fastReflection_MsgResponse_messageType struct{} 2743 2744 func (x fastReflection_MsgResponse_messageType) Zero() protoreflect.Message { 2745 return (*fastReflection_MsgResponse)(nil) 2746 } 2747 func (x fastReflection_MsgResponse_messageType) New() protoreflect.Message { 2748 return new(fastReflection_MsgResponse) 2749 } 2750 func (x fastReflection_MsgResponse_messageType) Descriptor() protoreflect.MessageDescriptor { 2751 return md_MsgResponse 2752 } 2753 2754 // Descriptor returns message descriptor, which contains only the protobuf 2755 // type information for the message. 2756 func (x *fastReflection_MsgResponse) Descriptor() protoreflect.MessageDescriptor { 2757 return md_MsgResponse 2758 } 2759 2760 // Type returns the message type, which encapsulates both Go and protobuf 2761 // type information. If the Go type information is not needed, 2762 // it is recommended that the message descriptor be used instead. 2763 func (x *fastReflection_MsgResponse) Type() protoreflect.MessageType { 2764 return _fastReflection_MsgResponse_messageType 2765 } 2766 2767 // New returns a newly allocated and mutable empty message. 2768 func (x *fastReflection_MsgResponse) New() protoreflect.Message { 2769 return new(fastReflection_MsgResponse) 2770 } 2771 2772 // Interface unwraps the message reflection interface and 2773 // returns the underlying ProtoMessage interface. 2774 func (x *fastReflection_MsgResponse) Interface() protoreflect.ProtoMessage { 2775 return (*MsgResponse)(x) 2776 } 2777 2778 // Range iterates over every populated field in an undefined order, 2779 // calling f for each field descriptor and value encountered. 2780 // Range returns immediately if f returns false. 2781 // While iterating, mutating operations may only be performed 2782 // on the current field descriptor. 2783 func (x *fastReflection_MsgResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 2784 if x.Request != nil { 2785 value := protoreflect.ValueOfMessage(x.Request.ProtoReflect()) 2786 if !f(fd_MsgResponse_request, value) { 2787 return 2788 } 2789 } 2790 } 2791 2792 // Has reports whether a field is populated. 2793 // 2794 // Some fields have the property of nullability where it is possible to 2795 // distinguish between the default value of a field and whether the field 2796 // was explicitly populated with the default value. Singular message fields, 2797 // member fields of a oneof, and proto2 scalar fields are nullable. Such 2798 // fields are populated only if explicitly set. 2799 // 2800 // In other cases (aside from the nullable cases above), 2801 // a proto3 scalar field is populated if it contains a non-zero value, and 2802 // a repeated field is populated if it is non-empty. 2803 func (x *fastReflection_MsgResponse) Has(fd protoreflect.FieldDescriptor) bool { 2804 switch fd.FullName() { 2805 case "testpb.MsgResponse.request": 2806 return x.Request != nil 2807 default: 2808 if fd.IsExtension() { 2809 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) 2810 } 2811 panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) 2812 } 2813 } 2814 2815 // Clear clears the field such that a subsequent Has call reports false. 2816 // 2817 // Clearing an extension field clears both the extension type and value 2818 // associated with the given field number. 2819 // 2820 // Clear is a mutating operation and unsafe for concurrent use. 2821 func (x *fastReflection_MsgResponse) Clear(fd protoreflect.FieldDescriptor) { 2822 switch fd.FullName() { 2823 case "testpb.MsgResponse.request": 2824 x.Request = nil 2825 default: 2826 if fd.IsExtension() { 2827 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) 2828 } 2829 panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) 2830 } 2831 } 2832 2833 // Get retrieves the value for a field. 2834 // 2835 // For unpopulated scalars, it returns the default value, where 2836 // the default value of a bytes scalar is guaranteed to be a copy. 2837 // For unpopulated composite types, it returns an empty, read-only view 2838 // of the value; to obtain a mutable reference, use Mutable. 2839 func (x *fastReflection_MsgResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { 2840 switch descriptor.FullName() { 2841 case "testpb.MsgResponse.request": 2842 value := x.Request 2843 return protoreflect.ValueOfMessage(value.ProtoReflect()) 2844 default: 2845 if descriptor.IsExtension() { 2846 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) 2847 } 2848 panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", descriptor.FullName())) 2849 } 2850 } 2851 2852 // Set stores the value for a field. 2853 // 2854 // For a field belonging to a oneof, it implicitly clears any other field 2855 // that may be currently set within the same oneof. 2856 // For extension fields, it implicitly stores the provided ExtensionType. 2857 // When setting a composite type, it is unspecified whether the stored value 2858 // aliases the source's memory in any way. If the composite value is an 2859 // empty, read-only value, then it panics. 2860 // 2861 // Set is a mutating operation and unsafe for concurrent use. 2862 func (x *fastReflection_MsgResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { 2863 switch fd.FullName() { 2864 case "testpb.MsgResponse.request": 2865 x.Request = value.Message().Interface().(*MsgRequest) 2866 default: 2867 if fd.IsExtension() { 2868 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) 2869 } 2870 panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) 2871 } 2872 } 2873 2874 // Mutable returns a mutable reference to a composite type. 2875 // 2876 // If the field is unpopulated, it may allocate a composite value. 2877 // For a field belonging to a oneof, it implicitly clears any other field 2878 // that may be currently set within the same oneof. 2879 // For extension fields, it implicitly stores the provided ExtensionType 2880 // if not already stored. 2881 // It panics if the field does not contain a composite type. 2882 // 2883 // Mutable is a mutating operation and unsafe for concurrent use. 2884 func (x *fastReflection_MsgResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { 2885 switch fd.FullName() { 2886 case "testpb.MsgResponse.request": 2887 if x.Request == nil { 2888 x.Request = new(MsgRequest) 2889 } 2890 return protoreflect.ValueOfMessage(x.Request.ProtoReflect()) 2891 default: 2892 if fd.IsExtension() { 2893 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) 2894 } 2895 panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) 2896 } 2897 } 2898 2899 // NewField returns a new value that is assignable to the field 2900 // for the given descriptor. For scalars, this returns the default value. 2901 // For lists, maps, and messages, this returns a new, empty, mutable value. 2902 func (x *fastReflection_MsgResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { 2903 switch fd.FullName() { 2904 case "testpb.MsgResponse.request": 2905 m := new(MsgRequest) 2906 return protoreflect.ValueOfMessage(m.ProtoReflect()) 2907 default: 2908 if fd.IsExtension() { 2909 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) 2910 } 2911 panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) 2912 } 2913 } 2914 2915 // WhichOneof reports which field within the oneof is populated, 2916 // returning nil if none are populated. 2917 // It panics if the oneof descriptor does not belong to this message. 2918 func (x *fastReflection_MsgResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { 2919 switch d.FullName() { 2920 default: 2921 panic(fmt.Errorf("%s is not a oneof field in testpb.MsgResponse", d.FullName())) 2922 } 2923 panic("unreachable") 2924 } 2925 2926 // GetUnknown retrieves the entire list of unknown fields. 2927 // The caller may only mutate the contents of the RawFields 2928 // if the mutated bytes are stored back into the message with SetUnknown. 2929 func (x *fastReflection_MsgResponse) GetUnknown() protoreflect.RawFields { 2930 return x.unknownFields 2931 } 2932 2933 // SetUnknown stores an entire list of unknown fields. 2934 // The raw fields must be syntactically valid according to the wire format. 2935 // An implementation may panic if this is not the case. 2936 // Once stored, the caller must not mutate the content of the RawFields. 2937 // An empty RawFields may be passed to clear the fields. 2938 // 2939 // SetUnknown is a mutating operation and unsafe for concurrent use. 2940 func (x *fastReflection_MsgResponse) SetUnknown(fields protoreflect.RawFields) { 2941 x.unknownFields = fields 2942 } 2943 2944 // IsValid reports whether the message is valid. 2945 // 2946 // An invalid message is an empty, read-only value. 2947 // 2948 // An invalid message often corresponds to a nil pointer of the concrete 2949 // message type, but the details are implementation dependent. 2950 // Validity is not part of the protobuf data model, and may not 2951 // be preserved in marshaling or other operations. 2952 func (x *fastReflection_MsgResponse) IsValid() bool { 2953 return x != nil 2954 } 2955 2956 // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. 2957 // This method may return nil. 2958 // 2959 // The returned methods type is identical to 2960 // "google.golang.org/protobuf/runtime/protoiface".Methods. 2961 // Consult the protoiface package documentation for details. 2962 func (x *fastReflection_MsgResponse) ProtoMethods() *protoiface.Methods { 2963 size := func(input protoiface.SizeInput) protoiface.SizeOutput { 2964 x := input.Message.Interface().(*MsgResponse) 2965 if x == nil { 2966 return protoiface.SizeOutput{ 2967 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2968 Size: 0, 2969 } 2970 } 2971 options := runtime.SizeInputToOptions(input) 2972 _ = options 2973 var n int 2974 var l int 2975 _ = l 2976 if x.Request != nil { 2977 l = options.Size(x.Request) 2978 n += 1 + l + runtime.Sov(uint64(l)) 2979 } 2980 if x.unknownFields != nil { 2981 n += len(x.unknownFields) 2982 } 2983 return protoiface.SizeOutput{ 2984 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2985 Size: n, 2986 } 2987 } 2988 2989 marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { 2990 x := input.Message.Interface().(*MsgResponse) 2991 if x == nil { 2992 return protoiface.MarshalOutput{ 2993 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2994 Buf: input.Buf, 2995 }, nil 2996 } 2997 options := runtime.MarshalInputToOptions(input) 2998 _ = options 2999 size := options.Size(x) 3000 dAtA := make([]byte, size) 3001 i := len(dAtA) 3002 _ = i 3003 var l int 3004 _ = l 3005 if x.unknownFields != nil { 3006 i -= len(x.unknownFields) 3007 copy(dAtA[i:], x.unknownFields) 3008 } 3009 if x.Request != nil { 3010 encoded, err := options.Marshal(x.Request) 3011 if err != nil { 3012 return protoiface.MarshalOutput{ 3013 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 3014 Buf: input.Buf, 3015 }, err 3016 } 3017 i -= len(encoded) 3018 copy(dAtA[i:], encoded) 3019 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 3020 i-- 3021 dAtA[i] = 0xa 3022 } 3023 if input.Buf != nil { 3024 input.Buf = append(input.Buf, dAtA...) 3025 } else { 3026 input.Buf = dAtA 3027 } 3028 return protoiface.MarshalOutput{ 3029 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 3030 Buf: input.Buf, 3031 }, nil 3032 } 3033 unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { 3034 x := input.Message.Interface().(*MsgResponse) 3035 if x == nil { 3036 return protoiface.UnmarshalOutput{ 3037 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 3038 Flags: input.Flags, 3039 }, nil 3040 } 3041 options := runtime.UnmarshalInputToOptions(input) 3042 _ = options 3043 dAtA := input.Buf 3044 l := len(dAtA) 3045 iNdEx := 0 3046 for iNdEx < l { 3047 preIndex := iNdEx 3048 var wire uint64 3049 for shift := uint(0); ; shift += 7 { 3050 if shift >= 64 { 3051 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3052 } 3053 if iNdEx >= l { 3054 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3055 } 3056 b := dAtA[iNdEx] 3057 iNdEx++ 3058 wire |= uint64(b&0x7F) << shift 3059 if b < 0x80 { 3060 break 3061 } 3062 } 3063 fieldNum := int32(wire >> 3) 3064 wireType := int(wire & 0x7) 3065 if wireType == 4 { 3066 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgResponse: wiretype end group for non-group") 3067 } 3068 if fieldNum <= 0 { 3069 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3070 } 3071 switch fieldNum { 3072 case 1: 3073 if wireType != 2 { 3074 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) 3075 } 3076 var msglen int 3077 for shift := uint(0); ; shift += 7 { 3078 if shift >= 64 { 3079 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3080 } 3081 if iNdEx >= l { 3082 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3083 } 3084 b := dAtA[iNdEx] 3085 iNdEx++ 3086 msglen |= int(b&0x7F) << shift 3087 if b < 0x80 { 3088 break 3089 } 3090 } 3091 if msglen < 0 { 3092 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3093 } 3094 postIndex := iNdEx + msglen 3095 if postIndex < 0 { 3096 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3097 } 3098 if postIndex > l { 3099 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3100 } 3101 if x.Request == nil { 3102 x.Request = &MsgRequest{} 3103 } 3104 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Request); err != nil { 3105 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3106 } 3107 iNdEx = postIndex 3108 default: 3109 iNdEx = preIndex 3110 skippy, err := runtime.Skip(dAtA[iNdEx:]) 3111 if err != nil { 3112 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3113 } 3114 if (skippy < 0) || (iNdEx+skippy) < 0 { 3115 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3116 } 3117 if (iNdEx + skippy) > l { 3118 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3119 } 3120 if !options.DiscardUnknown { 3121 x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3122 } 3123 iNdEx += skippy 3124 } 3125 } 3126 3127 if iNdEx > l { 3128 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3129 } 3130 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil 3131 } 3132 return &protoiface.Methods{ 3133 NoUnkeyedLiterals: struct{}{}, 3134 Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, 3135 Size: size, 3136 Marshal: marshal, 3137 Unmarshal: unmarshal, 3138 Merge: nil, 3139 CheckInitialized: nil, 3140 } 3141 } 3142 3143 // Code generated by protoc-gen-go. DO NOT EDIT. 3144 // versions: 3145 // protoc-gen-go v1.27.0 3146 // protoc (unknown) 3147 // source: testpb/msg.proto 3148 3149 const ( 3150 // Verify that this generated code is sufficiently up-to-date. 3151 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 3152 // Verify that runtime/protoimpl is sufficiently up-to-date. 3153 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 3154 ) 3155 3156 type MsgRequest struct { 3157 state protoimpl.MessageState 3158 sizeCache protoimpl.SizeCache 3159 unknownFields protoimpl.UnknownFields 3160 3161 // u32 is an uint32 3162 U32 uint32 `protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty"` 3163 U64 uint64 `protobuf:"varint,2,opt,name=u64,proto3" json:"u64,omitempty"` 3164 Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` 3165 Bz []byte `protobuf:"bytes,4,opt,name=bz,proto3" json:"bz,omitempty"` 3166 Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 3167 Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` 3168 I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` 3169 I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` 3170 ABool bool `protobuf:"varint,15,opt,name=a_bool,json=aBool,proto3" json:"a_bool,omitempty"` 3171 AnEnum Enum `protobuf:"varint,16,opt,name=an_enum,json=anEnum,proto3,enum=testpb.Enum" json:"an_enum,omitempty"` 3172 AMessage *AMessage `protobuf:"bytes,17,opt,name=a_message,json=aMessage,proto3" json:"a_message,omitempty"` 3173 ACoin *v1beta1.Coin `protobuf:"bytes,18,opt,name=a_coin,json=aCoin,proto3" json:"a_coin,omitempty"` 3174 AnAddress string `protobuf:"bytes,19,opt,name=an_address,json=anAddress,proto3" json:"an_address,omitempty"` 3175 Page *v1beta11.PageRequest `protobuf:"bytes,20,opt,name=page,proto3" json:"page,omitempty"` 3176 Bools []bool `protobuf:"varint,21,rep,packed,name=bools,proto3" json:"bools,omitempty"` 3177 Uints []uint32 `protobuf:"varint,22,rep,packed,name=uints,proto3" json:"uints,omitempty"` 3178 Strings []string `protobuf:"bytes,23,rep,name=strings,proto3" json:"strings,omitempty"` 3179 Enums []Enum `protobuf:"varint,24,rep,packed,name=enums,proto3,enum=testpb.Enum" json:"enums,omitempty"` 3180 Durations []*durationpb.Duration `protobuf:"bytes,25,rep,name=durations,proto3" json:"durations,omitempty"` 3181 SomeMessages []*AMessage `protobuf:"bytes,26,rep,name=some_messages,json=someMessages,proto3" json:"some_messages,omitempty"` 3182 Positional1 int32 `protobuf:"varint,27,opt,name=positional1,proto3" json:"positional1,omitempty"` 3183 Positional2 string `protobuf:"bytes,28,opt,name=positional2,proto3" json:"positional2,omitempty"` 3184 Positional3Varargs []*v1beta1.Coin `protobuf:"bytes,29,rep,name=positional3_varargs,json=positional3Varargs,proto3" json:"positional3_varargs,omitempty"` 3185 DeprecatedField string `protobuf:"bytes,30,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"` 3186 ShorthandDeprecatedField string `protobuf:"bytes,31,opt,name=shorthand_deprecated_field,json=shorthandDeprecatedField,proto3" json:"shorthand_deprecated_field,omitempty"` 3187 HiddenBool bool `protobuf:"varint,32,opt,name=hidden_bool,json=hiddenBool,proto3" json:"hidden_bool,omitempty"` 3188 AValidatorAddress string `protobuf:"bytes,33,opt,name=a_validator_address,json=aValidatorAddress,proto3" json:"a_validator_address,omitempty"` 3189 } 3190 3191 func (x *MsgRequest) Reset() { 3192 *x = MsgRequest{} 3193 if protoimpl.UnsafeEnabled { 3194 mi := &file_testpb_msg_proto_msgTypes[0] 3195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 3196 ms.StoreMessageInfo(mi) 3197 } 3198 } 3199 3200 func (x *MsgRequest) String() string { 3201 return protoimpl.X.MessageStringOf(x) 3202 } 3203 3204 func (*MsgRequest) ProtoMessage() {} 3205 3206 // Deprecated: Use MsgRequest.ProtoReflect.Descriptor instead. 3207 func (*MsgRequest) Descriptor() ([]byte, []int) { 3208 return file_testpb_msg_proto_rawDescGZIP(), []int{0} 3209 } 3210 3211 func (x *MsgRequest) GetU32() uint32 { 3212 if x != nil { 3213 return x.U32 3214 } 3215 return 0 3216 } 3217 3218 func (x *MsgRequest) GetU64() uint64 { 3219 if x != nil { 3220 return x.U64 3221 } 3222 return 0 3223 } 3224 3225 func (x *MsgRequest) GetStr() string { 3226 if x != nil { 3227 return x.Str 3228 } 3229 return "" 3230 } 3231 3232 func (x *MsgRequest) GetBz() []byte { 3233 if x != nil { 3234 return x.Bz 3235 } 3236 return nil 3237 } 3238 3239 func (x *MsgRequest) GetTimestamp() *timestamppb.Timestamp { 3240 if x != nil { 3241 return x.Timestamp 3242 } 3243 return nil 3244 } 3245 3246 func (x *MsgRequest) GetDuration() *durationpb.Duration { 3247 if x != nil { 3248 return x.Duration 3249 } 3250 return nil 3251 } 3252 3253 func (x *MsgRequest) GetI32() int32 { 3254 if x != nil { 3255 return x.I32 3256 } 3257 return 0 3258 } 3259 3260 func (x *MsgRequest) GetI64() int64 { 3261 if x != nil { 3262 return x.I64 3263 } 3264 return 0 3265 } 3266 3267 func (x *MsgRequest) GetABool() bool { 3268 if x != nil { 3269 return x.ABool 3270 } 3271 return false 3272 } 3273 3274 func (x *MsgRequest) GetAnEnum() Enum { 3275 if x != nil { 3276 return x.AnEnum 3277 } 3278 return Enum_ENUM_UNSPECIFIED 3279 } 3280 3281 func (x *MsgRequest) GetAMessage() *AMessage { 3282 if x != nil { 3283 return x.AMessage 3284 } 3285 return nil 3286 } 3287 3288 func (x *MsgRequest) GetACoin() *v1beta1.Coin { 3289 if x != nil { 3290 return x.ACoin 3291 } 3292 return nil 3293 } 3294 3295 func (x *MsgRequest) GetAnAddress() string { 3296 if x != nil { 3297 return x.AnAddress 3298 } 3299 return "" 3300 } 3301 3302 func (x *MsgRequest) GetPage() *v1beta11.PageRequest { 3303 if x != nil { 3304 return x.Page 3305 } 3306 return nil 3307 } 3308 3309 func (x *MsgRequest) GetBools() []bool { 3310 if x != nil { 3311 return x.Bools 3312 } 3313 return nil 3314 } 3315 3316 func (x *MsgRequest) GetUints() []uint32 { 3317 if x != nil { 3318 return x.Uints 3319 } 3320 return nil 3321 } 3322 3323 func (x *MsgRequest) GetStrings() []string { 3324 if x != nil { 3325 return x.Strings 3326 } 3327 return nil 3328 } 3329 3330 func (x *MsgRequest) GetEnums() []Enum { 3331 if x != nil { 3332 return x.Enums 3333 } 3334 return nil 3335 } 3336 3337 func (x *MsgRequest) GetDurations() []*durationpb.Duration { 3338 if x != nil { 3339 return x.Durations 3340 } 3341 return nil 3342 } 3343 3344 func (x *MsgRequest) GetSomeMessages() []*AMessage { 3345 if x != nil { 3346 return x.SomeMessages 3347 } 3348 return nil 3349 } 3350 3351 func (x *MsgRequest) GetPositional1() int32 { 3352 if x != nil { 3353 return x.Positional1 3354 } 3355 return 0 3356 } 3357 3358 func (x *MsgRequest) GetPositional2() string { 3359 if x != nil { 3360 return x.Positional2 3361 } 3362 return "" 3363 } 3364 3365 func (x *MsgRequest) GetPositional3Varargs() []*v1beta1.Coin { 3366 if x != nil { 3367 return x.Positional3Varargs 3368 } 3369 return nil 3370 } 3371 3372 func (x *MsgRequest) GetDeprecatedField() string { 3373 if x != nil { 3374 return x.DeprecatedField 3375 } 3376 return "" 3377 } 3378 3379 func (x *MsgRequest) GetShorthandDeprecatedField() string { 3380 if x != nil { 3381 return x.ShorthandDeprecatedField 3382 } 3383 return "" 3384 } 3385 3386 func (x *MsgRequest) GetHiddenBool() bool { 3387 if x != nil { 3388 return x.HiddenBool 3389 } 3390 return false 3391 } 3392 3393 func (x *MsgRequest) GetAValidatorAddress() string { 3394 if x != nil { 3395 return x.AValidatorAddress 3396 } 3397 return "" 3398 } 3399 3400 type MsgResponse struct { 3401 state protoimpl.MessageState 3402 sizeCache protoimpl.SizeCache 3403 unknownFields protoimpl.UnknownFields 3404 3405 Request *MsgRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` 3406 } 3407 3408 func (x *MsgResponse) Reset() { 3409 *x = MsgResponse{} 3410 if protoimpl.UnsafeEnabled { 3411 mi := &file_testpb_msg_proto_msgTypes[1] 3412 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 3413 ms.StoreMessageInfo(mi) 3414 } 3415 } 3416 3417 func (x *MsgResponse) String() string { 3418 return protoimpl.X.MessageStringOf(x) 3419 } 3420 3421 func (*MsgResponse) ProtoMessage() {} 3422 3423 // Deprecated: Use MsgResponse.ProtoReflect.Descriptor instead. 3424 func (*MsgResponse) Descriptor() ([]byte, []int) { 3425 return file_testpb_msg_proto_rawDescGZIP(), []int{1} 3426 } 3427 3428 func (x *MsgResponse) GetRequest() *MsgRequest { 3429 if x != nil { 3430 return x.Request 3431 } 3432 return nil 3433 } 3434 3435 var File_testpb_msg_proto protoreflect.FileDescriptor 3436 3437 var file_testpb_msg_proto_rawDesc = []byte{ 3438 0x0a, 0x10, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 3439 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 3440 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 3441 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 3442 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 3443 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 3444 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 3445 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 3446 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 3447 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 3448 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 3449 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 3450 0x74, 0x6f, 0x1a, 0x12, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 3451 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x08, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x52, 0x65, 3452 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 3453 0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, 3454 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 3455 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, 3456 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x62, 0x7a, 0x12, 0x38, 0x0a, 0x09, 0x74, 3457 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 3458 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 3459 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 3460 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 3461 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 3462 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 3463 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 3464 0x69, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, 3465 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 3466 0x12, 0x15, 0x0a, 0x06, 0x61, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 3467 0x52, 0x05, 0x61, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x25, 0x0a, 0x07, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 3468 0x75, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 3469 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x2d, 3470 0x0a, 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 3471 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 3472 0x61, 0x67, 0x65, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 3473 0x06, 0x61, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 3474 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 3475 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x61, 0x43, 0x6f, 0x69, 0x6e, 0x12, 3476 0x37, 0x0a, 0x0a, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, 3477 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 3478 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 3479 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 3480 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 3481 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 3482 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 3483 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x15, 0x20, 3484 0x03, 0x28, 0x08, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x69, 3485 0x6e, 0x74, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, 3486 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 3487 0x09, 0x52, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, 3488 0x75, 0x6d, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 3489 0x70, 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x37, 3490 0x0a, 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 3491 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 3492 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x75, 3493 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x0d, 0x73, 0x6f, 0x6d, 0x65, 0x5f, 3494 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 3495 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 3496 0x52, 0x0c, 0x73, 0x6f, 0x6d, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x20, 3497 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x18, 0x1b, 0x20, 3498 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 3499 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x18, 3500 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 3501 0x6c, 0x32, 0x12, 0x4a, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 3502 0x33, 0x5f, 0x76, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 3503 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 3504 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 3505 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 0x56, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x12, 0x29, 3506 0x0a, 0x10, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 3507 0x6c, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 3508 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x68, 0x6f, 3509 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 3510 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x73, 3511 0x68, 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 3512 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, 0x64, 0x64, 0x65, 3513 0x6e, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x69, 3514 0x64, 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x76, 0x61, 3515 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 3516 0x21, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 3517 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 3518 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x56, 0x61, 0x6c, 0x69, 0x64, 3519 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3b, 0x0a, 0x0b, 0x4d, 3520 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x72, 0x65, 3521 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 3522 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 3523 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x36, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 3524 0x2f, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 3525 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 3526 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 3527 0x42, 0x86, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, 3528 0x08, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74, 3529 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 3530 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 3531 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 3532 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 3533 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, 0x12, 0x54, 0x65, 3534 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 3535 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 3536 0x33, 3537 } 3538 3539 var ( 3540 file_testpb_msg_proto_rawDescOnce sync.Once 3541 file_testpb_msg_proto_rawDescData = file_testpb_msg_proto_rawDesc 3542 ) 3543 3544 func file_testpb_msg_proto_rawDescGZIP() []byte { 3545 file_testpb_msg_proto_rawDescOnce.Do(func() { 3546 file_testpb_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_msg_proto_rawDescData) 3547 }) 3548 return file_testpb_msg_proto_rawDescData 3549 } 3550 3551 var file_testpb_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 3552 var file_testpb_msg_proto_goTypes = []interface{}{ 3553 (*MsgRequest)(nil), // 0: testpb.MsgRequest 3554 (*MsgResponse)(nil), // 1: testpb.MsgResponse 3555 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 3556 (*durationpb.Duration)(nil), // 3: google.protobuf.Duration 3557 (Enum)(0), // 4: testpb.Enum 3558 (*AMessage)(nil), // 5: testpb.AMessage 3559 (*v1beta1.Coin)(nil), // 6: cosmos.base.v1beta1.Coin 3560 (*v1beta11.PageRequest)(nil), // 7: cosmos.base.query.v1beta1.PageRequest 3561 } 3562 var file_testpb_msg_proto_depIdxs = []int32{ 3563 2, // 0: testpb.MsgRequest.timestamp:type_name -> google.protobuf.Timestamp 3564 3, // 1: testpb.MsgRequest.duration:type_name -> google.protobuf.Duration 3565 4, // 2: testpb.MsgRequest.an_enum:type_name -> testpb.Enum 3566 5, // 3: testpb.MsgRequest.a_message:type_name -> testpb.AMessage 3567 6, // 4: testpb.MsgRequest.a_coin:type_name -> cosmos.base.v1beta1.Coin 3568 7, // 5: testpb.MsgRequest.page:type_name -> cosmos.base.query.v1beta1.PageRequest 3569 4, // 6: testpb.MsgRequest.enums:type_name -> testpb.Enum 3570 3, // 7: testpb.MsgRequest.durations:type_name -> google.protobuf.Duration 3571 5, // 8: testpb.MsgRequest.some_messages:type_name -> testpb.AMessage 3572 6, // 9: testpb.MsgRequest.positional3_varargs:type_name -> cosmos.base.v1beta1.Coin 3573 0, // 10: testpb.MsgResponse.request:type_name -> testpb.MsgRequest 3574 0, // 11: testpb.Msg.Send:input_type -> testpb.MsgRequest 3575 1, // 12: testpb.Msg.Send:output_type -> testpb.MsgResponse 3576 12, // [12:13] is the sub-list for method output_type 3577 11, // [11:12] is the sub-list for method input_type 3578 11, // [11:11] is the sub-list for extension type_name 3579 11, // [11:11] is the sub-list for extension extendee 3580 0, // [0:11] is the sub-list for field type_name 3581 } 3582 3583 func init() { file_testpb_msg_proto_init() } 3584 func file_testpb_msg_proto_init() { 3585 if File_testpb_msg_proto != nil { 3586 return 3587 } 3588 file_testpb_query_proto_init() 3589 if !protoimpl.UnsafeEnabled { 3590 file_testpb_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 3591 switch v := v.(*MsgRequest); i { 3592 case 0: 3593 return &v.state 3594 case 1: 3595 return &v.sizeCache 3596 case 2: 3597 return &v.unknownFields 3598 default: 3599 return nil 3600 } 3601 } 3602 file_testpb_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 3603 switch v := v.(*MsgResponse); i { 3604 case 0: 3605 return &v.state 3606 case 1: 3607 return &v.sizeCache 3608 case 2: 3609 return &v.unknownFields 3610 default: 3611 return nil 3612 } 3613 } 3614 } 3615 type x struct{} 3616 out := protoimpl.TypeBuilder{ 3617 File: protoimpl.DescBuilder{ 3618 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 3619 RawDescriptor: file_testpb_msg_proto_rawDesc, 3620 NumEnums: 0, 3621 NumMessages: 2, 3622 NumExtensions: 0, 3623 NumServices: 1, 3624 }, 3625 GoTypes: file_testpb_msg_proto_goTypes, 3626 DependencyIndexes: file_testpb_msg_proto_depIdxs, 3627 MessageInfos: file_testpb_msg_proto_msgTypes, 3628 }.Build() 3629 File_testpb_msg_proto = out.File 3630 file_testpb_msg_proto_rawDesc = nil 3631 file_testpb_msg_proto_goTypes = nil 3632 file_testpb_msg_proto_depIdxs = nil 3633 }