cosmossdk.io/client/v2@v2.0.0-beta.1/internal/testpb/query.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 sort "sort" 18 sync "sync" 19 ) 20 21 var ( 22 md_AMessage protoreflect.MessageDescriptor 23 fd_AMessage_bar protoreflect.FieldDescriptor 24 fd_AMessage_baz protoreflect.FieldDescriptor 25 ) 26 27 func init() { 28 file_testpb_query_proto_init() 29 md_AMessage = File_testpb_query_proto.Messages().ByName("AMessage") 30 fd_AMessage_bar = md_AMessage.Fields().ByName("bar") 31 fd_AMessage_baz = md_AMessage.Fields().ByName("baz") 32 } 33 34 var _ protoreflect.Message = (*fastReflection_AMessage)(nil) 35 36 type fastReflection_AMessage AMessage 37 38 func (x *AMessage) ProtoReflect() protoreflect.Message { 39 return (*fastReflection_AMessage)(x) 40 } 41 42 func (x *AMessage) slowProtoReflect() protoreflect.Message { 43 mi := &file_testpb_query_proto_msgTypes[0] 44 if protoimpl.UnsafeEnabled && x != nil { 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 if ms.LoadMessageInfo() == nil { 47 ms.StoreMessageInfo(mi) 48 } 49 return ms 50 } 51 return mi.MessageOf(x) 52 } 53 54 var _fastReflection_AMessage_messageType fastReflection_AMessage_messageType 55 var _ protoreflect.MessageType = fastReflection_AMessage_messageType{} 56 57 type fastReflection_AMessage_messageType struct{} 58 59 func (x fastReflection_AMessage_messageType) Zero() protoreflect.Message { 60 return (*fastReflection_AMessage)(nil) 61 } 62 func (x fastReflection_AMessage_messageType) New() protoreflect.Message { 63 return new(fastReflection_AMessage) 64 } 65 func (x fastReflection_AMessage_messageType) Descriptor() protoreflect.MessageDescriptor { 66 return md_AMessage 67 } 68 69 // Descriptor returns message descriptor, which contains only the protobuf 70 // type information for the message. 71 func (x *fastReflection_AMessage) Descriptor() protoreflect.MessageDescriptor { 72 return md_AMessage 73 } 74 75 // Type returns the message type, which encapsulates both Go and protobuf 76 // type information. If the Go type information is not needed, 77 // it is recommended that the message descriptor be used instead. 78 func (x *fastReflection_AMessage) Type() protoreflect.MessageType { 79 return _fastReflection_AMessage_messageType 80 } 81 82 // New returns a newly allocated and mutable empty message. 83 func (x *fastReflection_AMessage) New() protoreflect.Message { 84 return new(fastReflection_AMessage) 85 } 86 87 // Interface unwraps the message reflection interface and 88 // returns the underlying ProtoMessage interface. 89 func (x *fastReflection_AMessage) Interface() protoreflect.ProtoMessage { 90 return (*AMessage)(x) 91 } 92 93 // Range iterates over every populated field in an undefined order, 94 // calling f for each field descriptor and value encountered. 95 // Range returns immediately if f returns false. 96 // While iterating, mutating operations may only be performed 97 // on the current field descriptor. 98 func (x *fastReflection_AMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 99 if x.Bar != "" { 100 value := protoreflect.ValueOfString(x.Bar) 101 if !f(fd_AMessage_bar, value) { 102 return 103 } 104 } 105 if x.Baz != int32(0) { 106 value := protoreflect.ValueOfInt32(x.Baz) 107 if !f(fd_AMessage_baz, value) { 108 return 109 } 110 } 111 } 112 113 // Has reports whether a field is populated. 114 // 115 // Some fields have the property of nullability where it is possible to 116 // distinguish between the default value of a field and whether the field 117 // was explicitly populated with the default value. Singular message fields, 118 // member fields of a oneof, and proto2 scalar fields are nullable. Such 119 // fields are populated only if explicitly set. 120 // 121 // In other cases (aside from the nullable cases above), 122 // a proto3 scalar field is populated if it contains a non-zero value, and 123 // a repeated field is populated if it is non-empty. 124 func (x *fastReflection_AMessage) Has(fd protoreflect.FieldDescriptor) bool { 125 switch fd.FullName() { 126 case "testpb.AMessage.bar": 127 return x.Bar != "" 128 case "testpb.AMessage.baz": 129 return x.Baz != int32(0) 130 default: 131 if fd.IsExtension() { 132 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) 133 } 134 panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) 135 } 136 } 137 138 // Clear clears the field such that a subsequent Has call reports false. 139 // 140 // Clearing an extension field clears both the extension type and value 141 // associated with the given field number. 142 // 143 // Clear is a mutating operation and unsafe for concurrent use. 144 func (x *fastReflection_AMessage) Clear(fd protoreflect.FieldDescriptor) { 145 switch fd.FullName() { 146 case "testpb.AMessage.bar": 147 x.Bar = "" 148 case "testpb.AMessage.baz": 149 x.Baz = int32(0) 150 default: 151 if fd.IsExtension() { 152 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) 153 } 154 panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) 155 } 156 } 157 158 // Get retrieves the value for a field. 159 // 160 // For unpopulated scalars, it returns the default value, where 161 // the default value of a bytes scalar is guaranteed to be a copy. 162 // For unpopulated composite types, it returns an empty, read-only view 163 // of the value; to obtain a mutable reference, use Mutable. 164 func (x *fastReflection_AMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { 165 switch descriptor.FullName() { 166 case "testpb.AMessage.bar": 167 value := x.Bar 168 return protoreflect.ValueOfString(value) 169 case "testpb.AMessage.baz": 170 value := x.Baz 171 return protoreflect.ValueOfInt32(value) 172 default: 173 if descriptor.IsExtension() { 174 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) 175 } 176 panic(fmt.Errorf("message testpb.AMessage does not contain field %s", descriptor.FullName())) 177 } 178 } 179 180 // Set stores the value for a field. 181 // 182 // For a field belonging to a oneof, it implicitly clears any other field 183 // that may be currently set within the same oneof. 184 // For extension fields, it implicitly stores the provided ExtensionType. 185 // When setting a composite type, it is unspecified whether the stored value 186 // aliases the source's memory in any way. If the composite value is an 187 // empty, read-only value, then it panics. 188 // 189 // Set is a mutating operation and unsafe for concurrent use. 190 func (x *fastReflection_AMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { 191 switch fd.FullName() { 192 case "testpb.AMessage.bar": 193 x.Bar = value.Interface().(string) 194 case "testpb.AMessage.baz": 195 x.Baz = int32(value.Int()) 196 default: 197 if fd.IsExtension() { 198 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) 199 } 200 panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) 201 } 202 } 203 204 // Mutable returns a mutable reference to a composite type. 205 // 206 // If the field is unpopulated, it may allocate a composite value. 207 // For a field belonging to a oneof, it implicitly clears any other field 208 // that may be currently set within the same oneof. 209 // For extension fields, it implicitly stores the provided ExtensionType 210 // if not already stored. 211 // It panics if the field does not contain a composite type. 212 // 213 // Mutable is a mutating operation and unsafe for concurrent use. 214 func (x *fastReflection_AMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { 215 switch fd.FullName() { 216 case "testpb.AMessage.bar": 217 panic(fmt.Errorf("field bar of message testpb.AMessage is not mutable")) 218 case "testpb.AMessage.baz": 219 panic(fmt.Errorf("field baz of message testpb.AMessage is not mutable")) 220 default: 221 if fd.IsExtension() { 222 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) 223 } 224 panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) 225 } 226 } 227 228 // NewField returns a new value that is assignable to the field 229 // for the given descriptor. For scalars, this returns the default value. 230 // For lists, maps, and messages, this returns a new, empty, mutable value. 231 func (x *fastReflection_AMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { 232 switch fd.FullName() { 233 case "testpb.AMessage.bar": 234 return protoreflect.ValueOfString("") 235 case "testpb.AMessage.baz": 236 return protoreflect.ValueOfInt32(int32(0)) 237 default: 238 if fd.IsExtension() { 239 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) 240 } 241 panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) 242 } 243 } 244 245 // WhichOneof reports which field within the oneof is populated, 246 // returning nil if none are populated. 247 // It panics if the oneof descriptor does not belong to this message. 248 func (x *fastReflection_AMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { 249 switch d.FullName() { 250 default: 251 panic(fmt.Errorf("%s is not a oneof field in testpb.AMessage", d.FullName())) 252 } 253 panic("unreachable") 254 } 255 256 // GetUnknown retrieves the entire list of unknown fields. 257 // The caller may only mutate the contents of the RawFields 258 // if the mutated bytes are stored back into the message with SetUnknown. 259 func (x *fastReflection_AMessage) GetUnknown() protoreflect.RawFields { 260 return x.unknownFields 261 } 262 263 // SetUnknown stores an entire list of unknown fields. 264 // The raw fields must be syntactically valid according to the wire format. 265 // An implementation may panic if this is not the case. 266 // Once stored, the caller must not mutate the content of the RawFields. 267 // An empty RawFields may be passed to clear the fields. 268 // 269 // SetUnknown is a mutating operation and unsafe for concurrent use. 270 func (x *fastReflection_AMessage) SetUnknown(fields protoreflect.RawFields) { 271 x.unknownFields = fields 272 } 273 274 // IsValid reports whether the message is valid. 275 // 276 // An invalid message is an empty, read-only value. 277 // 278 // An invalid message often corresponds to a nil pointer of the concrete 279 // message type, but the details are implementation dependent. 280 // Validity is not part of the protobuf data model, and may not 281 // be preserved in marshaling or other operations. 282 func (x *fastReflection_AMessage) IsValid() bool { 283 return x != nil 284 } 285 286 // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. 287 // This method may return nil. 288 // 289 // The returned methods type is identical to 290 // "google.golang.org/protobuf/runtime/protoiface".Methods. 291 // Consult the protoiface package documentation for details. 292 func (x *fastReflection_AMessage) ProtoMethods() *protoiface.Methods { 293 size := func(input protoiface.SizeInput) protoiface.SizeOutput { 294 x := input.Message.Interface().(*AMessage) 295 if x == nil { 296 return protoiface.SizeOutput{ 297 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 298 Size: 0, 299 } 300 } 301 options := runtime.SizeInputToOptions(input) 302 _ = options 303 var n int 304 var l int 305 _ = l 306 l = len(x.Bar) 307 if l > 0 { 308 n += 1 + l + runtime.Sov(uint64(l)) 309 } 310 if x.Baz != 0 { 311 n += 1 + runtime.Sov(uint64(x.Baz)) 312 } 313 if x.unknownFields != nil { 314 n += len(x.unknownFields) 315 } 316 return protoiface.SizeOutput{ 317 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 318 Size: n, 319 } 320 } 321 322 marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { 323 x := input.Message.Interface().(*AMessage) 324 if x == nil { 325 return protoiface.MarshalOutput{ 326 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 327 Buf: input.Buf, 328 }, nil 329 } 330 options := runtime.MarshalInputToOptions(input) 331 _ = options 332 size := options.Size(x) 333 dAtA := make([]byte, size) 334 i := len(dAtA) 335 _ = i 336 var l int 337 _ = l 338 if x.unknownFields != nil { 339 i -= len(x.unknownFields) 340 copy(dAtA[i:], x.unknownFields) 341 } 342 if x.Baz != 0 { 343 i = runtime.EncodeVarint(dAtA, i, uint64(x.Baz)) 344 i-- 345 dAtA[i] = 0x10 346 } 347 if len(x.Bar) > 0 { 348 i -= len(x.Bar) 349 copy(dAtA[i:], x.Bar) 350 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bar))) 351 i-- 352 dAtA[i] = 0xa 353 } 354 if input.Buf != nil { 355 input.Buf = append(input.Buf, dAtA...) 356 } else { 357 input.Buf = dAtA 358 } 359 return protoiface.MarshalOutput{ 360 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 361 Buf: input.Buf, 362 }, nil 363 } 364 unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { 365 x := input.Message.Interface().(*AMessage) 366 if x == nil { 367 return protoiface.UnmarshalOutput{ 368 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 369 Flags: input.Flags, 370 }, nil 371 } 372 options := runtime.UnmarshalInputToOptions(input) 373 _ = options 374 dAtA := input.Buf 375 l := len(dAtA) 376 iNdEx := 0 377 for iNdEx < l { 378 preIndex := iNdEx 379 var wire uint64 380 for shift := uint(0); ; shift += 7 { 381 if shift >= 64 { 382 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 383 } 384 if iNdEx >= l { 385 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 386 } 387 b := dAtA[iNdEx] 388 iNdEx++ 389 wire |= uint64(b&0x7F) << shift 390 if b < 0x80 { 391 break 392 } 393 } 394 fieldNum := int32(wire >> 3) 395 wireType := int(wire & 0x7) 396 if wireType == 4 { 397 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AMessage: wiretype end group for non-group") 398 } 399 if fieldNum <= 0 { 400 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AMessage: illegal tag %d (wire type %d)", fieldNum, wire) 401 } 402 switch fieldNum { 403 case 1: 404 if wireType != 2 { 405 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bar", wireType) 406 } 407 var stringLen uint64 408 for shift := uint(0); ; shift += 7 { 409 if shift >= 64 { 410 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 411 } 412 if iNdEx >= l { 413 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 414 } 415 b := dAtA[iNdEx] 416 iNdEx++ 417 stringLen |= uint64(b&0x7F) << shift 418 if b < 0x80 { 419 break 420 } 421 } 422 intStringLen := int(stringLen) 423 if intStringLen < 0 { 424 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 425 } 426 postIndex := iNdEx + intStringLen 427 if postIndex < 0 { 428 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 429 } 430 if postIndex > l { 431 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 432 } 433 x.Bar = string(dAtA[iNdEx:postIndex]) 434 iNdEx = postIndex 435 case 2: 436 if wireType != 0 { 437 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Baz", wireType) 438 } 439 x.Baz = 0 440 for shift := uint(0); ; shift += 7 { 441 if shift >= 64 { 442 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 443 } 444 if iNdEx >= l { 445 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 446 } 447 b := dAtA[iNdEx] 448 iNdEx++ 449 x.Baz |= int32(b&0x7F) << shift 450 if b < 0x80 { 451 break 452 } 453 } 454 default: 455 iNdEx = preIndex 456 skippy, err := runtime.Skip(dAtA[iNdEx:]) 457 if err != nil { 458 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 459 } 460 if (skippy < 0) || (iNdEx+skippy) < 0 { 461 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 462 } 463 if (iNdEx + skippy) > l { 464 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 465 } 466 if !options.DiscardUnknown { 467 x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 468 } 469 iNdEx += skippy 470 } 471 } 472 473 if iNdEx > l { 474 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 475 } 476 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil 477 } 478 return &protoiface.Methods{ 479 NoUnkeyedLiterals: struct{}{}, 480 Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, 481 Size: size, 482 Marshal: marshal, 483 Unmarshal: unmarshal, 484 Merge: nil, 485 CheckInitialized: nil, 486 } 487 } 488 489 var _ protoreflect.List = (*_EchoRequest_21_list)(nil) 490 491 type _EchoRequest_21_list struct { 492 list *[]bool 493 } 494 495 func (x *_EchoRequest_21_list) Len() int { 496 if x.list == nil { 497 return 0 498 } 499 return len(*x.list) 500 } 501 502 func (x *_EchoRequest_21_list) Get(i int) protoreflect.Value { 503 return protoreflect.ValueOfBool((*x.list)[i]) 504 } 505 506 func (x *_EchoRequest_21_list) Set(i int, value protoreflect.Value) { 507 valueUnwrapped := value.Bool() 508 concreteValue := valueUnwrapped 509 (*x.list)[i] = concreteValue 510 } 511 512 func (x *_EchoRequest_21_list) Append(value protoreflect.Value) { 513 valueUnwrapped := value.Bool() 514 concreteValue := valueUnwrapped 515 *x.list = append(*x.list, concreteValue) 516 } 517 518 func (x *_EchoRequest_21_list) AppendMutable() protoreflect.Value { 519 panic(fmt.Errorf("AppendMutable can not be called on message EchoRequest at list field Bools as it is not of Message kind")) 520 } 521 522 func (x *_EchoRequest_21_list) Truncate(n int) { 523 *x.list = (*x.list)[:n] 524 } 525 526 func (x *_EchoRequest_21_list) NewElement() protoreflect.Value { 527 v := false 528 return protoreflect.ValueOfBool(v) 529 } 530 531 func (x *_EchoRequest_21_list) IsValid() bool { 532 return x.list != nil 533 } 534 535 var _ protoreflect.List = (*_EchoRequest_22_list)(nil) 536 537 type _EchoRequest_22_list struct { 538 list *[]uint32 539 } 540 541 func (x *_EchoRequest_22_list) Len() int { 542 if x.list == nil { 543 return 0 544 } 545 return len(*x.list) 546 } 547 548 func (x *_EchoRequest_22_list) Get(i int) protoreflect.Value { 549 return protoreflect.ValueOfUint32((*x.list)[i]) 550 } 551 552 func (x *_EchoRequest_22_list) Set(i int, value protoreflect.Value) { 553 valueUnwrapped := value.Uint() 554 concreteValue := (uint32)(valueUnwrapped) 555 (*x.list)[i] = concreteValue 556 } 557 558 func (x *_EchoRequest_22_list) Append(value protoreflect.Value) { 559 valueUnwrapped := value.Uint() 560 concreteValue := (uint32)(valueUnwrapped) 561 *x.list = append(*x.list, concreteValue) 562 } 563 564 func (x *_EchoRequest_22_list) AppendMutable() protoreflect.Value { 565 panic(fmt.Errorf("AppendMutable can not be called on message EchoRequest at list field Uints as it is not of Message kind")) 566 } 567 568 func (x *_EchoRequest_22_list) Truncate(n int) { 569 *x.list = (*x.list)[:n] 570 } 571 572 func (x *_EchoRequest_22_list) NewElement() protoreflect.Value { 573 v := uint32(0) 574 return protoreflect.ValueOfUint32(v) 575 } 576 577 func (x *_EchoRequest_22_list) IsValid() bool { 578 return x.list != nil 579 } 580 581 var _ protoreflect.List = (*_EchoRequest_23_list)(nil) 582 583 type _EchoRequest_23_list struct { 584 list *[]string 585 } 586 587 func (x *_EchoRequest_23_list) Len() int { 588 if x.list == nil { 589 return 0 590 } 591 return len(*x.list) 592 } 593 594 func (x *_EchoRequest_23_list) Get(i int) protoreflect.Value { 595 return protoreflect.ValueOfString((*x.list)[i]) 596 } 597 598 func (x *_EchoRequest_23_list) Set(i int, value protoreflect.Value) { 599 valueUnwrapped := value.String() 600 concreteValue := valueUnwrapped 601 (*x.list)[i] = concreteValue 602 } 603 604 func (x *_EchoRequest_23_list) Append(value protoreflect.Value) { 605 valueUnwrapped := value.String() 606 concreteValue := valueUnwrapped 607 *x.list = append(*x.list, concreteValue) 608 } 609 610 func (x *_EchoRequest_23_list) AppendMutable() protoreflect.Value { 611 panic(fmt.Errorf("AppendMutable can not be called on message EchoRequest at list field Strings as it is not of Message kind")) 612 } 613 614 func (x *_EchoRequest_23_list) Truncate(n int) { 615 *x.list = (*x.list)[:n] 616 } 617 618 func (x *_EchoRequest_23_list) NewElement() protoreflect.Value { 619 v := "" 620 return protoreflect.ValueOfString(v) 621 } 622 623 func (x *_EchoRequest_23_list) IsValid() bool { 624 return x.list != nil 625 } 626 627 var _ protoreflect.List = (*_EchoRequest_24_list)(nil) 628 629 type _EchoRequest_24_list struct { 630 list *[]Enum 631 } 632 633 func (x *_EchoRequest_24_list) Len() int { 634 if x.list == nil { 635 return 0 636 } 637 return len(*x.list) 638 } 639 640 func (x *_EchoRequest_24_list) Get(i int) protoreflect.Value { 641 return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) 642 } 643 644 func (x *_EchoRequest_24_list) Set(i int, value protoreflect.Value) { 645 valueUnwrapped := value.Enum() 646 concreteValue := (Enum)(valueUnwrapped) 647 (*x.list)[i] = concreteValue 648 } 649 650 func (x *_EchoRequest_24_list) Append(value protoreflect.Value) { 651 valueUnwrapped := value.Enum() 652 concreteValue := (Enum)(valueUnwrapped) 653 *x.list = append(*x.list, concreteValue) 654 } 655 656 func (x *_EchoRequest_24_list) AppendMutable() protoreflect.Value { 657 panic(fmt.Errorf("AppendMutable can not be called on message EchoRequest at list field Enums as it is not of Message kind")) 658 } 659 660 func (x *_EchoRequest_24_list) Truncate(n int) { 661 *x.list = (*x.list)[:n] 662 } 663 664 func (x *_EchoRequest_24_list) NewElement() protoreflect.Value { 665 v := 0 666 return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) 667 } 668 669 func (x *_EchoRequest_24_list) IsValid() bool { 670 return x.list != nil 671 } 672 673 var _ protoreflect.List = (*_EchoRequest_25_list)(nil) 674 675 type _EchoRequest_25_list struct { 676 list *[]*durationpb.Duration 677 } 678 679 func (x *_EchoRequest_25_list) Len() int { 680 if x.list == nil { 681 return 0 682 } 683 return len(*x.list) 684 } 685 686 func (x *_EchoRequest_25_list) Get(i int) protoreflect.Value { 687 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 688 } 689 690 func (x *_EchoRequest_25_list) Set(i int, value protoreflect.Value) { 691 valueUnwrapped := value.Message() 692 concreteValue := valueUnwrapped.Interface().(*durationpb.Duration) 693 (*x.list)[i] = concreteValue 694 } 695 696 func (x *_EchoRequest_25_list) Append(value protoreflect.Value) { 697 valueUnwrapped := value.Message() 698 concreteValue := valueUnwrapped.Interface().(*durationpb.Duration) 699 *x.list = append(*x.list, concreteValue) 700 } 701 702 func (x *_EchoRequest_25_list) AppendMutable() protoreflect.Value { 703 v := new(durationpb.Duration) 704 *x.list = append(*x.list, v) 705 return protoreflect.ValueOfMessage(v.ProtoReflect()) 706 } 707 708 func (x *_EchoRequest_25_list) Truncate(n int) { 709 for i := n; i < len(*x.list); i++ { 710 (*x.list)[i] = nil 711 } 712 *x.list = (*x.list)[:n] 713 } 714 715 func (x *_EchoRequest_25_list) NewElement() protoreflect.Value { 716 v := new(durationpb.Duration) 717 return protoreflect.ValueOfMessage(v.ProtoReflect()) 718 } 719 720 func (x *_EchoRequest_25_list) IsValid() bool { 721 return x.list != nil 722 } 723 724 var _ protoreflect.List = (*_EchoRequest_26_list)(nil) 725 726 type _EchoRequest_26_list struct { 727 list *[]*AMessage 728 } 729 730 func (x *_EchoRequest_26_list) Len() int { 731 if x.list == nil { 732 return 0 733 } 734 return len(*x.list) 735 } 736 737 func (x *_EchoRequest_26_list) Get(i int) protoreflect.Value { 738 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 739 } 740 741 func (x *_EchoRequest_26_list) Set(i int, value protoreflect.Value) { 742 valueUnwrapped := value.Message() 743 concreteValue := valueUnwrapped.Interface().(*AMessage) 744 (*x.list)[i] = concreteValue 745 } 746 747 func (x *_EchoRequest_26_list) Append(value protoreflect.Value) { 748 valueUnwrapped := value.Message() 749 concreteValue := valueUnwrapped.Interface().(*AMessage) 750 *x.list = append(*x.list, concreteValue) 751 } 752 753 func (x *_EchoRequest_26_list) AppendMutable() protoreflect.Value { 754 v := new(AMessage) 755 *x.list = append(*x.list, v) 756 return protoreflect.ValueOfMessage(v.ProtoReflect()) 757 } 758 759 func (x *_EchoRequest_26_list) Truncate(n int) { 760 for i := n; i < len(*x.list); i++ { 761 (*x.list)[i] = nil 762 } 763 *x.list = (*x.list)[:n] 764 } 765 766 func (x *_EchoRequest_26_list) NewElement() protoreflect.Value { 767 v := new(AMessage) 768 return protoreflect.ValueOfMessage(v.ProtoReflect()) 769 } 770 771 func (x *_EchoRequest_26_list) IsValid() bool { 772 return x.list != nil 773 } 774 775 var _ protoreflect.List = (*_EchoRequest_29_list)(nil) 776 777 type _EchoRequest_29_list struct { 778 list *[]*v1beta1.Coin 779 } 780 781 func (x *_EchoRequest_29_list) Len() int { 782 if x.list == nil { 783 return 0 784 } 785 return len(*x.list) 786 } 787 788 func (x *_EchoRequest_29_list) Get(i int) protoreflect.Value { 789 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 790 } 791 792 func (x *_EchoRequest_29_list) Set(i int, value protoreflect.Value) { 793 valueUnwrapped := value.Message() 794 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 795 (*x.list)[i] = concreteValue 796 } 797 798 func (x *_EchoRequest_29_list) Append(value protoreflect.Value) { 799 valueUnwrapped := value.Message() 800 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 801 *x.list = append(*x.list, concreteValue) 802 } 803 804 func (x *_EchoRequest_29_list) AppendMutable() protoreflect.Value { 805 v := new(v1beta1.Coin) 806 *x.list = append(*x.list, v) 807 return protoreflect.ValueOfMessage(v.ProtoReflect()) 808 } 809 810 func (x *_EchoRequest_29_list) Truncate(n int) { 811 for i := n; i < len(*x.list); i++ { 812 (*x.list)[i] = nil 813 } 814 *x.list = (*x.list)[:n] 815 } 816 817 func (x *_EchoRequest_29_list) NewElement() protoreflect.Value { 818 v := new(v1beta1.Coin) 819 return protoreflect.ValueOfMessage(v.ProtoReflect()) 820 } 821 822 func (x *_EchoRequest_29_list) IsValid() bool { 823 return x.list != nil 824 } 825 826 var _ protoreflect.Map = (*_EchoRequest_33_map)(nil) 827 828 type _EchoRequest_33_map struct { 829 m *map[string]string 830 } 831 832 func (x *_EchoRequest_33_map) Len() int { 833 if x.m == nil { 834 return 0 835 } 836 return len(*x.m) 837 } 838 839 func (x *_EchoRequest_33_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { 840 if x.m == nil { 841 return 842 } 843 for k, v := range *x.m { 844 mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) 845 mapValue := protoreflect.ValueOfString(v) 846 if !f(mapKey, mapValue) { 847 break 848 } 849 } 850 } 851 852 func (x *_EchoRequest_33_map) Has(key protoreflect.MapKey) bool { 853 if x.m == nil { 854 return false 855 } 856 keyUnwrapped := key.String() 857 concreteValue := keyUnwrapped 858 _, ok := (*x.m)[concreteValue] 859 return ok 860 } 861 862 func (x *_EchoRequest_33_map) Clear(key protoreflect.MapKey) { 863 if x.m == nil { 864 return 865 } 866 keyUnwrapped := key.String() 867 concreteKey := keyUnwrapped 868 delete(*x.m, concreteKey) 869 } 870 871 func (x *_EchoRequest_33_map) Get(key protoreflect.MapKey) protoreflect.Value { 872 if x.m == nil { 873 return protoreflect.Value{} 874 } 875 keyUnwrapped := key.String() 876 concreteKey := keyUnwrapped 877 v, ok := (*x.m)[concreteKey] 878 if !ok { 879 return protoreflect.Value{} 880 } 881 return protoreflect.ValueOfString(v) 882 } 883 884 func (x *_EchoRequest_33_map) Set(key protoreflect.MapKey, value protoreflect.Value) { 885 if !key.IsValid() || !value.IsValid() { 886 panic("invalid key or value provided") 887 } 888 keyUnwrapped := key.String() 889 concreteKey := keyUnwrapped 890 valueUnwrapped := value.String() 891 concreteValue := valueUnwrapped 892 (*x.m)[concreteKey] = concreteValue 893 } 894 895 func (x *_EchoRequest_33_map) Mutable(key protoreflect.MapKey) protoreflect.Value { 896 panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") 897 } 898 899 func (x *_EchoRequest_33_map) NewValue() protoreflect.Value { 900 v := "" 901 return protoreflect.ValueOfString(v) 902 } 903 904 func (x *_EchoRequest_33_map) IsValid() bool { 905 return x.m != nil 906 } 907 908 var _ protoreflect.Map = (*_EchoRequest_34_map)(nil) 909 910 type _EchoRequest_34_map struct { 911 m *map[string]uint32 912 } 913 914 func (x *_EchoRequest_34_map) Len() int { 915 if x.m == nil { 916 return 0 917 } 918 return len(*x.m) 919 } 920 921 func (x *_EchoRequest_34_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { 922 if x.m == nil { 923 return 924 } 925 for k, v := range *x.m { 926 mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) 927 mapValue := protoreflect.ValueOfUint32(v) 928 if !f(mapKey, mapValue) { 929 break 930 } 931 } 932 } 933 934 func (x *_EchoRequest_34_map) Has(key protoreflect.MapKey) bool { 935 if x.m == nil { 936 return false 937 } 938 keyUnwrapped := key.String() 939 concreteValue := keyUnwrapped 940 _, ok := (*x.m)[concreteValue] 941 return ok 942 } 943 944 func (x *_EchoRequest_34_map) Clear(key protoreflect.MapKey) { 945 if x.m == nil { 946 return 947 } 948 keyUnwrapped := key.String() 949 concreteKey := keyUnwrapped 950 delete(*x.m, concreteKey) 951 } 952 953 func (x *_EchoRequest_34_map) Get(key protoreflect.MapKey) protoreflect.Value { 954 if x.m == nil { 955 return protoreflect.Value{} 956 } 957 keyUnwrapped := key.String() 958 concreteKey := keyUnwrapped 959 v, ok := (*x.m)[concreteKey] 960 if !ok { 961 return protoreflect.Value{} 962 } 963 return protoreflect.ValueOfUint32(v) 964 } 965 966 func (x *_EchoRequest_34_map) Set(key protoreflect.MapKey, value protoreflect.Value) { 967 if !key.IsValid() || !value.IsValid() { 968 panic("invalid key or value provided") 969 } 970 keyUnwrapped := key.String() 971 concreteKey := keyUnwrapped 972 valueUnwrapped := value.Uint() 973 concreteValue := (uint32)(valueUnwrapped) 974 (*x.m)[concreteKey] = concreteValue 975 } 976 977 func (x *_EchoRequest_34_map) Mutable(key protoreflect.MapKey) protoreflect.Value { 978 panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") 979 } 980 981 func (x *_EchoRequest_34_map) NewValue() protoreflect.Value { 982 v := uint32(0) 983 return protoreflect.ValueOfUint32(v) 984 } 985 986 func (x *_EchoRequest_34_map) IsValid() bool { 987 return x.m != nil 988 } 989 990 var _ protoreflect.Map = (*_EchoRequest_35_map)(nil) 991 992 type _EchoRequest_35_map struct { 993 m *map[string]*v1beta1.Coin 994 } 995 996 func (x *_EchoRequest_35_map) Len() int { 997 if x.m == nil { 998 return 0 999 } 1000 return len(*x.m) 1001 } 1002 1003 func (x *_EchoRequest_35_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { 1004 if x.m == nil { 1005 return 1006 } 1007 for k, v := range *x.m { 1008 mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) 1009 mapValue := protoreflect.ValueOfMessage(v.ProtoReflect()) 1010 if !f(mapKey, mapValue) { 1011 break 1012 } 1013 } 1014 } 1015 1016 func (x *_EchoRequest_35_map) Has(key protoreflect.MapKey) bool { 1017 if x.m == nil { 1018 return false 1019 } 1020 keyUnwrapped := key.String() 1021 concreteValue := keyUnwrapped 1022 _, ok := (*x.m)[concreteValue] 1023 return ok 1024 } 1025 1026 func (x *_EchoRequest_35_map) Clear(key protoreflect.MapKey) { 1027 if x.m == nil { 1028 return 1029 } 1030 keyUnwrapped := key.String() 1031 concreteKey := keyUnwrapped 1032 delete(*x.m, concreteKey) 1033 } 1034 1035 func (x *_EchoRequest_35_map) Get(key protoreflect.MapKey) protoreflect.Value { 1036 if x.m == nil { 1037 return protoreflect.Value{} 1038 } 1039 keyUnwrapped := key.String() 1040 concreteKey := keyUnwrapped 1041 v, ok := (*x.m)[concreteKey] 1042 if !ok { 1043 return protoreflect.Value{} 1044 } 1045 return protoreflect.ValueOfMessage(v.ProtoReflect()) 1046 } 1047 1048 func (x *_EchoRequest_35_map) Set(key protoreflect.MapKey, value protoreflect.Value) { 1049 if !key.IsValid() || !value.IsValid() { 1050 panic("invalid key or value provided") 1051 } 1052 keyUnwrapped := key.String() 1053 concreteKey := keyUnwrapped 1054 valueUnwrapped := value.Message() 1055 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 1056 (*x.m)[concreteKey] = concreteValue 1057 } 1058 1059 func (x *_EchoRequest_35_map) Mutable(key protoreflect.MapKey) protoreflect.Value { 1060 keyUnwrapped := key.String() 1061 concreteKey := keyUnwrapped 1062 v, ok := (*x.m)[concreteKey] 1063 if ok { 1064 return protoreflect.ValueOfMessage(v.ProtoReflect()) 1065 } 1066 newValue := new(v1beta1.Coin) 1067 (*x.m)[concreteKey] = newValue 1068 return protoreflect.ValueOfMessage(newValue.ProtoReflect()) 1069 } 1070 1071 func (x *_EchoRequest_35_map) NewValue() protoreflect.Value { 1072 v := new(v1beta1.Coin) 1073 return protoreflect.ValueOfMessage(v.ProtoReflect()) 1074 } 1075 1076 func (x *_EchoRequest_35_map) IsValid() bool { 1077 return x.m != nil 1078 } 1079 1080 var _ protoreflect.List = (*_EchoRequest_38_list)(nil) 1081 1082 type _EchoRequest_38_list struct { 1083 list *[]*v1beta1.Coin 1084 } 1085 1086 func (x *_EchoRequest_38_list) Len() int { 1087 if x.list == nil { 1088 return 0 1089 } 1090 return len(*x.list) 1091 } 1092 1093 func (x *_EchoRequest_38_list) Get(i int) protoreflect.Value { 1094 return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) 1095 } 1096 1097 func (x *_EchoRequest_38_list) Set(i int, value protoreflect.Value) { 1098 valueUnwrapped := value.Message() 1099 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 1100 (*x.list)[i] = concreteValue 1101 } 1102 1103 func (x *_EchoRequest_38_list) Append(value protoreflect.Value) { 1104 valueUnwrapped := value.Message() 1105 concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) 1106 *x.list = append(*x.list, concreteValue) 1107 } 1108 1109 func (x *_EchoRequest_38_list) AppendMutable() protoreflect.Value { 1110 v := new(v1beta1.Coin) 1111 *x.list = append(*x.list, v) 1112 return protoreflect.ValueOfMessage(v.ProtoReflect()) 1113 } 1114 1115 func (x *_EchoRequest_38_list) Truncate(n int) { 1116 for i := n; i < len(*x.list); i++ { 1117 (*x.list)[i] = nil 1118 } 1119 *x.list = (*x.list)[:n] 1120 } 1121 1122 func (x *_EchoRequest_38_list) NewElement() protoreflect.Value { 1123 v := new(v1beta1.Coin) 1124 return protoreflect.ValueOfMessage(v.ProtoReflect()) 1125 } 1126 1127 func (x *_EchoRequest_38_list) IsValid() bool { 1128 return x.list != nil 1129 } 1130 1131 var ( 1132 md_EchoRequest protoreflect.MessageDescriptor 1133 fd_EchoRequest_u32 protoreflect.FieldDescriptor 1134 fd_EchoRequest_u64 protoreflect.FieldDescriptor 1135 fd_EchoRequest_str protoreflect.FieldDescriptor 1136 fd_EchoRequest_bz protoreflect.FieldDescriptor 1137 fd_EchoRequest_timestamp protoreflect.FieldDescriptor 1138 fd_EchoRequest_duration protoreflect.FieldDescriptor 1139 fd_EchoRequest_i32 protoreflect.FieldDescriptor 1140 fd_EchoRequest_i64 protoreflect.FieldDescriptor 1141 fd_EchoRequest_a_bool protoreflect.FieldDescriptor 1142 fd_EchoRequest_an_enum protoreflect.FieldDescriptor 1143 fd_EchoRequest_a_message protoreflect.FieldDescriptor 1144 fd_EchoRequest_a_coin protoreflect.FieldDescriptor 1145 fd_EchoRequest_an_address protoreflect.FieldDescriptor 1146 fd_EchoRequest_page protoreflect.FieldDescriptor 1147 fd_EchoRequest_bools protoreflect.FieldDescriptor 1148 fd_EchoRequest_uints protoreflect.FieldDescriptor 1149 fd_EchoRequest_strings protoreflect.FieldDescriptor 1150 fd_EchoRequest_enums protoreflect.FieldDescriptor 1151 fd_EchoRequest_durations protoreflect.FieldDescriptor 1152 fd_EchoRequest_some_messages protoreflect.FieldDescriptor 1153 fd_EchoRequest_positional1 protoreflect.FieldDescriptor 1154 fd_EchoRequest_positional2 protoreflect.FieldDescriptor 1155 fd_EchoRequest_positional3_varargs protoreflect.FieldDescriptor 1156 fd_EchoRequest_deprecated_field protoreflect.FieldDescriptor 1157 fd_EchoRequest_shorthand_deprecated_field protoreflect.FieldDescriptor 1158 fd_EchoRequest_hidden_bool protoreflect.FieldDescriptor 1159 fd_EchoRequest_map_string_string protoreflect.FieldDescriptor 1160 fd_EchoRequest_map_string_uint32 protoreflect.FieldDescriptor 1161 fd_EchoRequest_map_string_coin protoreflect.FieldDescriptor 1162 fd_EchoRequest_a_validator_address protoreflect.FieldDescriptor 1163 fd_EchoRequest_a_consensus_address protoreflect.FieldDescriptor 1164 fd_EchoRequest_coins protoreflect.FieldDescriptor 1165 ) 1166 1167 func init() { 1168 file_testpb_query_proto_init() 1169 md_EchoRequest = File_testpb_query_proto.Messages().ByName("EchoRequest") 1170 fd_EchoRequest_u32 = md_EchoRequest.Fields().ByName("u32") 1171 fd_EchoRequest_u64 = md_EchoRequest.Fields().ByName("u64") 1172 fd_EchoRequest_str = md_EchoRequest.Fields().ByName("str") 1173 fd_EchoRequest_bz = md_EchoRequest.Fields().ByName("bz") 1174 fd_EchoRequest_timestamp = md_EchoRequest.Fields().ByName("timestamp") 1175 fd_EchoRequest_duration = md_EchoRequest.Fields().ByName("duration") 1176 fd_EchoRequest_i32 = md_EchoRequest.Fields().ByName("i32") 1177 fd_EchoRequest_i64 = md_EchoRequest.Fields().ByName("i64") 1178 fd_EchoRequest_a_bool = md_EchoRequest.Fields().ByName("a_bool") 1179 fd_EchoRequest_an_enum = md_EchoRequest.Fields().ByName("an_enum") 1180 fd_EchoRequest_a_message = md_EchoRequest.Fields().ByName("a_message") 1181 fd_EchoRequest_a_coin = md_EchoRequest.Fields().ByName("a_coin") 1182 fd_EchoRequest_an_address = md_EchoRequest.Fields().ByName("an_address") 1183 fd_EchoRequest_page = md_EchoRequest.Fields().ByName("page") 1184 fd_EchoRequest_bools = md_EchoRequest.Fields().ByName("bools") 1185 fd_EchoRequest_uints = md_EchoRequest.Fields().ByName("uints") 1186 fd_EchoRequest_strings = md_EchoRequest.Fields().ByName("strings") 1187 fd_EchoRequest_enums = md_EchoRequest.Fields().ByName("enums") 1188 fd_EchoRequest_durations = md_EchoRequest.Fields().ByName("durations") 1189 fd_EchoRequest_some_messages = md_EchoRequest.Fields().ByName("some_messages") 1190 fd_EchoRequest_positional1 = md_EchoRequest.Fields().ByName("positional1") 1191 fd_EchoRequest_positional2 = md_EchoRequest.Fields().ByName("positional2") 1192 fd_EchoRequest_positional3_varargs = md_EchoRequest.Fields().ByName("positional3_varargs") 1193 fd_EchoRequest_deprecated_field = md_EchoRequest.Fields().ByName("deprecated_field") 1194 fd_EchoRequest_shorthand_deprecated_field = md_EchoRequest.Fields().ByName("shorthand_deprecated_field") 1195 fd_EchoRequest_hidden_bool = md_EchoRequest.Fields().ByName("hidden_bool") 1196 fd_EchoRequest_map_string_string = md_EchoRequest.Fields().ByName("map_string_string") 1197 fd_EchoRequest_map_string_uint32 = md_EchoRequest.Fields().ByName("map_string_uint32") 1198 fd_EchoRequest_map_string_coin = md_EchoRequest.Fields().ByName("map_string_coin") 1199 fd_EchoRequest_a_validator_address = md_EchoRequest.Fields().ByName("a_validator_address") 1200 fd_EchoRequest_a_consensus_address = md_EchoRequest.Fields().ByName("a_consensus_address") 1201 fd_EchoRequest_coins = md_EchoRequest.Fields().ByName("coins") 1202 } 1203 1204 var _ protoreflect.Message = (*fastReflection_EchoRequest)(nil) 1205 1206 type fastReflection_EchoRequest EchoRequest 1207 1208 func (x *EchoRequest) ProtoReflect() protoreflect.Message { 1209 return (*fastReflection_EchoRequest)(x) 1210 } 1211 1212 func (x *EchoRequest) slowProtoReflect() protoreflect.Message { 1213 mi := &file_testpb_query_proto_msgTypes[1] 1214 if protoimpl.UnsafeEnabled && x != nil { 1215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1216 if ms.LoadMessageInfo() == nil { 1217 ms.StoreMessageInfo(mi) 1218 } 1219 return ms 1220 } 1221 return mi.MessageOf(x) 1222 } 1223 1224 var _fastReflection_EchoRequest_messageType fastReflection_EchoRequest_messageType 1225 var _ protoreflect.MessageType = fastReflection_EchoRequest_messageType{} 1226 1227 type fastReflection_EchoRequest_messageType struct{} 1228 1229 func (x fastReflection_EchoRequest_messageType) Zero() protoreflect.Message { 1230 return (*fastReflection_EchoRequest)(nil) 1231 } 1232 func (x fastReflection_EchoRequest_messageType) New() protoreflect.Message { 1233 return new(fastReflection_EchoRequest) 1234 } 1235 func (x fastReflection_EchoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { 1236 return md_EchoRequest 1237 } 1238 1239 // Descriptor returns message descriptor, which contains only the protobuf 1240 // type information for the message. 1241 func (x *fastReflection_EchoRequest) Descriptor() protoreflect.MessageDescriptor { 1242 return md_EchoRequest 1243 } 1244 1245 // Type returns the message type, which encapsulates both Go and protobuf 1246 // type information. If the Go type information is not needed, 1247 // it is recommended that the message descriptor be used instead. 1248 func (x *fastReflection_EchoRequest) Type() protoreflect.MessageType { 1249 return _fastReflection_EchoRequest_messageType 1250 } 1251 1252 // New returns a newly allocated and mutable empty message. 1253 func (x *fastReflection_EchoRequest) New() protoreflect.Message { 1254 return new(fastReflection_EchoRequest) 1255 } 1256 1257 // Interface unwraps the message reflection interface and 1258 // returns the underlying ProtoMessage interface. 1259 func (x *fastReflection_EchoRequest) Interface() protoreflect.ProtoMessage { 1260 return (*EchoRequest)(x) 1261 } 1262 1263 // Range iterates over every populated field in an undefined order, 1264 // calling f for each field descriptor and value encountered. 1265 // Range returns immediately if f returns false. 1266 // While iterating, mutating operations may only be performed 1267 // on the current field descriptor. 1268 func (x *fastReflection_EchoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 1269 if x.U32 != uint32(0) { 1270 value := protoreflect.ValueOfUint32(x.U32) 1271 if !f(fd_EchoRequest_u32, value) { 1272 return 1273 } 1274 } 1275 if x.U64 != uint64(0) { 1276 value := protoreflect.ValueOfUint64(x.U64) 1277 if !f(fd_EchoRequest_u64, value) { 1278 return 1279 } 1280 } 1281 if x.Str != "" { 1282 value := protoreflect.ValueOfString(x.Str) 1283 if !f(fd_EchoRequest_str, value) { 1284 return 1285 } 1286 } 1287 if len(x.Bz) != 0 { 1288 value := protoreflect.ValueOfBytes(x.Bz) 1289 if !f(fd_EchoRequest_bz, value) { 1290 return 1291 } 1292 } 1293 if x.Timestamp != nil { 1294 value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) 1295 if !f(fd_EchoRequest_timestamp, value) { 1296 return 1297 } 1298 } 1299 if x.Duration != nil { 1300 value := protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) 1301 if !f(fd_EchoRequest_duration, value) { 1302 return 1303 } 1304 } 1305 if x.I32 != int32(0) { 1306 value := protoreflect.ValueOfInt32(x.I32) 1307 if !f(fd_EchoRequest_i32, value) { 1308 return 1309 } 1310 } 1311 if x.I64 != int64(0) { 1312 value := protoreflect.ValueOfInt64(x.I64) 1313 if !f(fd_EchoRequest_i64, value) { 1314 return 1315 } 1316 } 1317 if x.ABool != false { 1318 value := protoreflect.ValueOfBool(x.ABool) 1319 if !f(fd_EchoRequest_a_bool, value) { 1320 return 1321 } 1322 } 1323 if x.AnEnum != 0 { 1324 value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.AnEnum)) 1325 if !f(fd_EchoRequest_an_enum, value) { 1326 return 1327 } 1328 } 1329 if x.AMessage != nil { 1330 value := protoreflect.ValueOfMessage(x.AMessage.ProtoReflect()) 1331 if !f(fd_EchoRequest_a_message, value) { 1332 return 1333 } 1334 } 1335 if x.ACoin != nil { 1336 value := protoreflect.ValueOfMessage(x.ACoin.ProtoReflect()) 1337 if !f(fd_EchoRequest_a_coin, value) { 1338 return 1339 } 1340 } 1341 if x.AnAddress != "" { 1342 value := protoreflect.ValueOfString(x.AnAddress) 1343 if !f(fd_EchoRequest_an_address, value) { 1344 return 1345 } 1346 } 1347 if x.Page != nil { 1348 value := protoreflect.ValueOfMessage(x.Page.ProtoReflect()) 1349 if !f(fd_EchoRequest_page, value) { 1350 return 1351 } 1352 } 1353 if len(x.Bools) != 0 { 1354 value := protoreflect.ValueOfList(&_EchoRequest_21_list{list: &x.Bools}) 1355 if !f(fd_EchoRequest_bools, value) { 1356 return 1357 } 1358 } 1359 if len(x.Uints) != 0 { 1360 value := protoreflect.ValueOfList(&_EchoRequest_22_list{list: &x.Uints}) 1361 if !f(fd_EchoRequest_uints, value) { 1362 return 1363 } 1364 } 1365 if len(x.Strings) != 0 { 1366 value := protoreflect.ValueOfList(&_EchoRequest_23_list{list: &x.Strings}) 1367 if !f(fd_EchoRequest_strings, value) { 1368 return 1369 } 1370 } 1371 if len(x.Enums) != 0 { 1372 value := protoreflect.ValueOfList(&_EchoRequest_24_list{list: &x.Enums}) 1373 if !f(fd_EchoRequest_enums, value) { 1374 return 1375 } 1376 } 1377 if len(x.Durations) != 0 { 1378 value := protoreflect.ValueOfList(&_EchoRequest_25_list{list: &x.Durations}) 1379 if !f(fd_EchoRequest_durations, value) { 1380 return 1381 } 1382 } 1383 if len(x.SomeMessages) != 0 { 1384 value := protoreflect.ValueOfList(&_EchoRequest_26_list{list: &x.SomeMessages}) 1385 if !f(fd_EchoRequest_some_messages, value) { 1386 return 1387 } 1388 } 1389 if x.Positional1 != int32(0) { 1390 value := protoreflect.ValueOfInt32(x.Positional1) 1391 if !f(fd_EchoRequest_positional1, value) { 1392 return 1393 } 1394 } 1395 if x.Positional2 != "" { 1396 value := protoreflect.ValueOfString(x.Positional2) 1397 if !f(fd_EchoRequest_positional2, value) { 1398 return 1399 } 1400 } 1401 if len(x.Positional3Varargs) != 0 { 1402 value := protoreflect.ValueOfList(&_EchoRequest_29_list{list: &x.Positional3Varargs}) 1403 if !f(fd_EchoRequest_positional3_varargs, value) { 1404 return 1405 } 1406 } 1407 if x.DeprecatedField != "" { 1408 value := protoreflect.ValueOfString(x.DeprecatedField) 1409 if !f(fd_EchoRequest_deprecated_field, value) { 1410 return 1411 } 1412 } 1413 if x.ShorthandDeprecatedField != "" { 1414 value := protoreflect.ValueOfString(x.ShorthandDeprecatedField) 1415 if !f(fd_EchoRequest_shorthand_deprecated_field, value) { 1416 return 1417 } 1418 } 1419 if x.HiddenBool != false { 1420 value := protoreflect.ValueOfBool(x.HiddenBool) 1421 if !f(fd_EchoRequest_hidden_bool, value) { 1422 return 1423 } 1424 } 1425 if len(x.MapStringString) != 0 { 1426 value := protoreflect.ValueOfMap(&_EchoRequest_33_map{m: &x.MapStringString}) 1427 if !f(fd_EchoRequest_map_string_string, value) { 1428 return 1429 } 1430 } 1431 if len(x.MapStringUint32) != 0 { 1432 value := protoreflect.ValueOfMap(&_EchoRequest_34_map{m: &x.MapStringUint32}) 1433 if !f(fd_EchoRequest_map_string_uint32, value) { 1434 return 1435 } 1436 } 1437 if len(x.MapStringCoin) != 0 { 1438 value := protoreflect.ValueOfMap(&_EchoRequest_35_map{m: &x.MapStringCoin}) 1439 if !f(fd_EchoRequest_map_string_coin, value) { 1440 return 1441 } 1442 } 1443 if x.AValidatorAddress != "" { 1444 value := protoreflect.ValueOfString(x.AValidatorAddress) 1445 if !f(fd_EchoRequest_a_validator_address, value) { 1446 return 1447 } 1448 } 1449 if x.AConsensusAddress != "" { 1450 value := protoreflect.ValueOfString(x.AConsensusAddress) 1451 if !f(fd_EchoRequest_a_consensus_address, value) { 1452 return 1453 } 1454 } 1455 if len(x.Coins) != 0 { 1456 value := protoreflect.ValueOfList(&_EchoRequest_38_list{list: &x.Coins}) 1457 if !f(fd_EchoRequest_coins, value) { 1458 return 1459 } 1460 } 1461 } 1462 1463 // Has reports whether a field is populated. 1464 // 1465 // Some fields have the property of nullability where it is possible to 1466 // distinguish between the default value of a field and whether the field 1467 // was explicitly populated with the default value. Singular message fields, 1468 // member fields of a oneof, and proto2 scalar fields are nullable. Such 1469 // fields are populated only if explicitly set. 1470 // 1471 // In other cases (aside from the nullable cases above), 1472 // a proto3 scalar field is populated if it contains a non-zero value, and 1473 // a repeated field is populated if it is non-empty. 1474 func (x *fastReflection_EchoRequest) Has(fd protoreflect.FieldDescriptor) bool { 1475 switch fd.FullName() { 1476 case "testpb.EchoRequest.u32": 1477 return x.U32 != uint32(0) 1478 case "testpb.EchoRequest.u64": 1479 return x.U64 != uint64(0) 1480 case "testpb.EchoRequest.str": 1481 return x.Str != "" 1482 case "testpb.EchoRequest.bz": 1483 return len(x.Bz) != 0 1484 case "testpb.EchoRequest.timestamp": 1485 return x.Timestamp != nil 1486 case "testpb.EchoRequest.duration": 1487 return x.Duration != nil 1488 case "testpb.EchoRequest.i32": 1489 return x.I32 != int32(0) 1490 case "testpb.EchoRequest.i64": 1491 return x.I64 != int64(0) 1492 case "testpb.EchoRequest.a_bool": 1493 return x.ABool != false 1494 case "testpb.EchoRequest.an_enum": 1495 return x.AnEnum != 0 1496 case "testpb.EchoRequest.a_message": 1497 return x.AMessage != nil 1498 case "testpb.EchoRequest.a_coin": 1499 return x.ACoin != nil 1500 case "testpb.EchoRequest.an_address": 1501 return x.AnAddress != "" 1502 case "testpb.EchoRequest.page": 1503 return x.Page != nil 1504 case "testpb.EchoRequest.bools": 1505 return len(x.Bools) != 0 1506 case "testpb.EchoRequest.uints": 1507 return len(x.Uints) != 0 1508 case "testpb.EchoRequest.strings": 1509 return len(x.Strings) != 0 1510 case "testpb.EchoRequest.enums": 1511 return len(x.Enums) != 0 1512 case "testpb.EchoRequest.durations": 1513 return len(x.Durations) != 0 1514 case "testpb.EchoRequest.some_messages": 1515 return len(x.SomeMessages) != 0 1516 case "testpb.EchoRequest.positional1": 1517 return x.Positional1 != int32(0) 1518 case "testpb.EchoRequest.positional2": 1519 return x.Positional2 != "" 1520 case "testpb.EchoRequest.positional3_varargs": 1521 return len(x.Positional3Varargs) != 0 1522 case "testpb.EchoRequest.deprecated_field": 1523 return x.DeprecatedField != "" 1524 case "testpb.EchoRequest.shorthand_deprecated_field": 1525 return x.ShorthandDeprecatedField != "" 1526 case "testpb.EchoRequest.hidden_bool": 1527 return x.HiddenBool != false 1528 case "testpb.EchoRequest.map_string_string": 1529 return len(x.MapStringString) != 0 1530 case "testpb.EchoRequest.map_string_uint32": 1531 return len(x.MapStringUint32) != 0 1532 case "testpb.EchoRequest.map_string_coin": 1533 return len(x.MapStringCoin) != 0 1534 case "testpb.EchoRequest.a_validator_address": 1535 return x.AValidatorAddress != "" 1536 case "testpb.EchoRequest.a_consensus_address": 1537 return x.AConsensusAddress != "" 1538 case "testpb.EchoRequest.coins": 1539 return len(x.Coins) != 0 1540 default: 1541 if fd.IsExtension() { 1542 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) 1543 } 1544 panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) 1545 } 1546 } 1547 1548 // Clear clears the field such that a subsequent Has call reports false. 1549 // 1550 // Clearing an extension field clears both the extension type and value 1551 // associated with the given field number. 1552 // 1553 // Clear is a mutating operation and unsafe for concurrent use. 1554 func (x *fastReflection_EchoRequest) Clear(fd protoreflect.FieldDescriptor) { 1555 switch fd.FullName() { 1556 case "testpb.EchoRequest.u32": 1557 x.U32 = uint32(0) 1558 case "testpb.EchoRequest.u64": 1559 x.U64 = uint64(0) 1560 case "testpb.EchoRequest.str": 1561 x.Str = "" 1562 case "testpb.EchoRequest.bz": 1563 x.Bz = nil 1564 case "testpb.EchoRequest.timestamp": 1565 x.Timestamp = nil 1566 case "testpb.EchoRequest.duration": 1567 x.Duration = nil 1568 case "testpb.EchoRequest.i32": 1569 x.I32 = int32(0) 1570 case "testpb.EchoRequest.i64": 1571 x.I64 = int64(0) 1572 case "testpb.EchoRequest.a_bool": 1573 x.ABool = false 1574 case "testpb.EchoRequest.an_enum": 1575 x.AnEnum = 0 1576 case "testpb.EchoRequest.a_message": 1577 x.AMessage = nil 1578 case "testpb.EchoRequest.a_coin": 1579 x.ACoin = nil 1580 case "testpb.EchoRequest.an_address": 1581 x.AnAddress = "" 1582 case "testpb.EchoRequest.page": 1583 x.Page = nil 1584 case "testpb.EchoRequest.bools": 1585 x.Bools = nil 1586 case "testpb.EchoRequest.uints": 1587 x.Uints = nil 1588 case "testpb.EchoRequest.strings": 1589 x.Strings = nil 1590 case "testpb.EchoRequest.enums": 1591 x.Enums = nil 1592 case "testpb.EchoRequest.durations": 1593 x.Durations = nil 1594 case "testpb.EchoRequest.some_messages": 1595 x.SomeMessages = nil 1596 case "testpb.EchoRequest.positional1": 1597 x.Positional1 = int32(0) 1598 case "testpb.EchoRequest.positional2": 1599 x.Positional2 = "" 1600 case "testpb.EchoRequest.positional3_varargs": 1601 x.Positional3Varargs = nil 1602 case "testpb.EchoRequest.deprecated_field": 1603 x.DeprecatedField = "" 1604 case "testpb.EchoRequest.shorthand_deprecated_field": 1605 x.ShorthandDeprecatedField = "" 1606 case "testpb.EchoRequest.hidden_bool": 1607 x.HiddenBool = false 1608 case "testpb.EchoRequest.map_string_string": 1609 x.MapStringString = nil 1610 case "testpb.EchoRequest.map_string_uint32": 1611 x.MapStringUint32 = nil 1612 case "testpb.EchoRequest.map_string_coin": 1613 x.MapStringCoin = nil 1614 case "testpb.EchoRequest.a_validator_address": 1615 x.AValidatorAddress = "" 1616 case "testpb.EchoRequest.a_consensus_address": 1617 x.AConsensusAddress = "" 1618 case "testpb.EchoRequest.coins": 1619 x.Coins = nil 1620 default: 1621 if fd.IsExtension() { 1622 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) 1623 } 1624 panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) 1625 } 1626 } 1627 1628 // Get retrieves the value for a field. 1629 // 1630 // For unpopulated scalars, it returns the default value, where 1631 // the default value of a bytes scalar is guaranteed to be a copy. 1632 // For unpopulated composite types, it returns an empty, read-only view 1633 // of the value; to obtain a mutable reference, use Mutable. 1634 func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { 1635 switch descriptor.FullName() { 1636 case "testpb.EchoRequest.u32": 1637 value := x.U32 1638 return protoreflect.ValueOfUint32(value) 1639 case "testpb.EchoRequest.u64": 1640 value := x.U64 1641 return protoreflect.ValueOfUint64(value) 1642 case "testpb.EchoRequest.str": 1643 value := x.Str 1644 return protoreflect.ValueOfString(value) 1645 case "testpb.EchoRequest.bz": 1646 value := x.Bz 1647 return protoreflect.ValueOfBytes(value) 1648 case "testpb.EchoRequest.timestamp": 1649 value := x.Timestamp 1650 return protoreflect.ValueOfMessage(value.ProtoReflect()) 1651 case "testpb.EchoRequest.duration": 1652 value := x.Duration 1653 return protoreflect.ValueOfMessage(value.ProtoReflect()) 1654 case "testpb.EchoRequest.i32": 1655 value := x.I32 1656 return protoreflect.ValueOfInt32(value) 1657 case "testpb.EchoRequest.i64": 1658 value := x.I64 1659 return protoreflect.ValueOfInt64(value) 1660 case "testpb.EchoRequest.a_bool": 1661 value := x.ABool 1662 return protoreflect.ValueOfBool(value) 1663 case "testpb.EchoRequest.an_enum": 1664 value := x.AnEnum 1665 return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) 1666 case "testpb.EchoRequest.a_message": 1667 value := x.AMessage 1668 return protoreflect.ValueOfMessage(value.ProtoReflect()) 1669 case "testpb.EchoRequest.a_coin": 1670 value := x.ACoin 1671 return protoreflect.ValueOfMessage(value.ProtoReflect()) 1672 case "testpb.EchoRequest.an_address": 1673 value := x.AnAddress 1674 return protoreflect.ValueOfString(value) 1675 case "testpb.EchoRequest.page": 1676 value := x.Page 1677 return protoreflect.ValueOfMessage(value.ProtoReflect()) 1678 case "testpb.EchoRequest.bools": 1679 if len(x.Bools) == 0 { 1680 return protoreflect.ValueOfList(&_EchoRequest_21_list{}) 1681 } 1682 listValue := &_EchoRequest_21_list{list: &x.Bools} 1683 return protoreflect.ValueOfList(listValue) 1684 case "testpb.EchoRequest.uints": 1685 if len(x.Uints) == 0 { 1686 return protoreflect.ValueOfList(&_EchoRequest_22_list{}) 1687 } 1688 listValue := &_EchoRequest_22_list{list: &x.Uints} 1689 return protoreflect.ValueOfList(listValue) 1690 case "testpb.EchoRequest.strings": 1691 if len(x.Strings) == 0 { 1692 return protoreflect.ValueOfList(&_EchoRequest_23_list{}) 1693 } 1694 listValue := &_EchoRequest_23_list{list: &x.Strings} 1695 return protoreflect.ValueOfList(listValue) 1696 case "testpb.EchoRequest.enums": 1697 if len(x.Enums) == 0 { 1698 return protoreflect.ValueOfList(&_EchoRequest_24_list{}) 1699 } 1700 listValue := &_EchoRequest_24_list{list: &x.Enums} 1701 return protoreflect.ValueOfList(listValue) 1702 case "testpb.EchoRequest.durations": 1703 if len(x.Durations) == 0 { 1704 return protoreflect.ValueOfList(&_EchoRequest_25_list{}) 1705 } 1706 listValue := &_EchoRequest_25_list{list: &x.Durations} 1707 return protoreflect.ValueOfList(listValue) 1708 case "testpb.EchoRequest.some_messages": 1709 if len(x.SomeMessages) == 0 { 1710 return protoreflect.ValueOfList(&_EchoRequest_26_list{}) 1711 } 1712 listValue := &_EchoRequest_26_list{list: &x.SomeMessages} 1713 return protoreflect.ValueOfList(listValue) 1714 case "testpb.EchoRequest.positional1": 1715 value := x.Positional1 1716 return protoreflect.ValueOfInt32(value) 1717 case "testpb.EchoRequest.positional2": 1718 value := x.Positional2 1719 return protoreflect.ValueOfString(value) 1720 case "testpb.EchoRequest.positional3_varargs": 1721 if len(x.Positional3Varargs) == 0 { 1722 return protoreflect.ValueOfList(&_EchoRequest_29_list{}) 1723 } 1724 listValue := &_EchoRequest_29_list{list: &x.Positional3Varargs} 1725 return protoreflect.ValueOfList(listValue) 1726 case "testpb.EchoRequest.deprecated_field": 1727 value := x.DeprecatedField 1728 return protoreflect.ValueOfString(value) 1729 case "testpb.EchoRequest.shorthand_deprecated_field": 1730 value := x.ShorthandDeprecatedField 1731 return protoreflect.ValueOfString(value) 1732 case "testpb.EchoRequest.hidden_bool": 1733 value := x.HiddenBool 1734 return protoreflect.ValueOfBool(value) 1735 case "testpb.EchoRequest.map_string_string": 1736 if len(x.MapStringString) == 0 { 1737 return protoreflect.ValueOfMap(&_EchoRequest_33_map{}) 1738 } 1739 mapValue := &_EchoRequest_33_map{m: &x.MapStringString} 1740 return protoreflect.ValueOfMap(mapValue) 1741 case "testpb.EchoRequest.map_string_uint32": 1742 if len(x.MapStringUint32) == 0 { 1743 return protoreflect.ValueOfMap(&_EchoRequest_34_map{}) 1744 } 1745 mapValue := &_EchoRequest_34_map{m: &x.MapStringUint32} 1746 return protoreflect.ValueOfMap(mapValue) 1747 case "testpb.EchoRequest.map_string_coin": 1748 if len(x.MapStringCoin) == 0 { 1749 return protoreflect.ValueOfMap(&_EchoRequest_35_map{}) 1750 } 1751 mapValue := &_EchoRequest_35_map{m: &x.MapStringCoin} 1752 return protoreflect.ValueOfMap(mapValue) 1753 case "testpb.EchoRequest.a_validator_address": 1754 value := x.AValidatorAddress 1755 return protoreflect.ValueOfString(value) 1756 case "testpb.EchoRequest.a_consensus_address": 1757 value := x.AConsensusAddress 1758 return protoreflect.ValueOfString(value) 1759 case "testpb.EchoRequest.coins": 1760 if len(x.Coins) == 0 { 1761 return protoreflect.ValueOfList(&_EchoRequest_38_list{}) 1762 } 1763 listValue := &_EchoRequest_38_list{list: &x.Coins} 1764 return protoreflect.ValueOfList(listValue) 1765 default: 1766 if descriptor.IsExtension() { 1767 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) 1768 } 1769 panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", descriptor.FullName())) 1770 } 1771 } 1772 1773 // Set stores the value for a field. 1774 // 1775 // For a field belonging to a oneof, it implicitly clears any other field 1776 // that may be currently set within the same oneof. 1777 // For extension fields, it implicitly stores the provided ExtensionType. 1778 // When setting a composite type, it is unspecified whether the stored value 1779 // aliases the source's memory in any way. If the composite value is an 1780 // empty, read-only value, then it panics. 1781 // 1782 // Set is a mutating operation and unsafe for concurrent use. 1783 func (x *fastReflection_EchoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { 1784 switch fd.FullName() { 1785 case "testpb.EchoRequest.u32": 1786 x.U32 = uint32(value.Uint()) 1787 case "testpb.EchoRequest.u64": 1788 x.U64 = value.Uint() 1789 case "testpb.EchoRequest.str": 1790 x.Str = value.Interface().(string) 1791 case "testpb.EchoRequest.bz": 1792 x.Bz = value.Bytes() 1793 case "testpb.EchoRequest.timestamp": 1794 x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) 1795 case "testpb.EchoRequest.duration": 1796 x.Duration = value.Message().Interface().(*durationpb.Duration) 1797 case "testpb.EchoRequest.i32": 1798 x.I32 = int32(value.Int()) 1799 case "testpb.EchoRequest.i64": 1800 x.I64 = value.Int() 1801 case "testpb.EchoRequest.a_bool": 1802 x.ABool = value.Bool() 1803 case "testpb.EchoRequest.an_enum": 1804 x.AnEnum = (Enum)(value.Enum()) 1805 case "testpb.EchoRequest.a_message": 1806 x.AMessage = value.Message().Interface().(*AMessage) 1807 case "testpb.EchoRequest.a_coin": 1808 x.ACoin = value.Message().Interface().(*v1beta1.Coin) 1809 case "testpb.EchoRequest.an_address": 1810 x.AnAddress = value.Interface().(string) 1811 case "testpb.EchoRequest.page": 1812 x.Page = value.Message().Interface().(*v1beta11.PageRequest) 1813 case "testpb.EchoRequest.bools": 1814 lv := value.List() 1815 clv := lv.(*_EchoRequest_21_list) 1816 x.Bools = *clv.list 1817 case "testpb.EchoRequest.uints": 1818 lv := value.List() 1819 clv := lv.(*_EchoRequest_22_list) 1820 x.Uints = *clv.list 1821 case "testpb.EchoRequest.strings": 1822 lv := value.List() 1823 clv := lv.(*_EchoRequest_23_list) 1824 x.Strings = *clv.list 1825 case "testpb.EchoRequest.enums": 1826 lv := value.List() 1827 clv := lv.(*_EchoRequest_24_list) 1828 x.Enums = *clv.list 1829 case "testpb.EchoRequest.durations": 1830 lv := value.List() 1831 clv := lv.(*_EchoRequest_25_list) 1832 x.Durations = *clv.list 1833 case "testpb.EchoRequest.some_messages": 1834 lv := value.List() 1835 clv := lv.(*_EchoRequest_26_list) 1836 x.SomeMessages = *clv.list 1837 case "testpb.EchoRequest.positional1": 1838 x.Positional1 = int32(value.Int()) 1839 case "testpb.EchoRequest.positional2": 1840 x.Positional2 = value.Interface().(string) 1841 case "testpb.EchoRequest.positional3_varargs": 1842 lv := value.List() 1843 clv := lv.(*_EchoRequest_29_list) 1844 x.Positional3Varargs = *clv.list 1845 case "testpb.EchoRequest.deprecated_field": 1846 x.DeprecatedField = value.Interface().(string) 1847 case "testpb.EchoRequest.shorthand_deprecated_field": 1848 x.ShorthandDeprecatedField = value.Interface().(string) 1849 case "testpb.EchoRequest.hidden_bool": 1850 x.HiddenBool = value.Bool() 1851 case "testpb.EchoRequest.map_string_string": 1852 mv := value.Map() 1853 cmv := mv.(*_EchoRequest_33_map) 1854 x.MapStringString = *cmv.m 1855 case "testpb.EchoRequest.map_string_uint32": 1856 mv := value.Map() 1857 cmv := mv.(*_EchoRequest_34_map) 1858 x.MapStringUint32 = *cmv.m 1859 case "testpb.EchoRequest.map_string_coin": 1860 mv := value.Map() 1861 cmv := mv.(*_EchoRequest_35_map) 1862 x.MapStringCoin = *cmv.m 1863 case "testpb.EchoRequest.a_validator_address": 1864 x.AValidatorAddress = value.Interface().(string) 1865 case "testpb.EchoRequest.a_consensus_address": 1866 x.AConsensusAddress = value.Interface().(string) 1867 case "testpb.EchoRequest.coins": 1868 lv := value.List() 1869 clv := lv.(*_EchoRequest_38_list) 1870 x.Coins = *clv.list 1871 default: 1872 if fd.IsExtension() { 1873 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) 1874 } 1875 panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) 1876 } 1877 } 1878 1879 // Mutable returns a mutable reference to a composite type. 1880 // 1881 // If the field is unpopulated, it may allocate a composite value. 1882 // For a field belonging to a oneof, it implicitly clears any other field 1883 // that may be currently set within the same oneof. 1884 // For extension fields, it implicitly stores the provided ExtensionType 1885 // if not already stored. 1886 // It panics if the field does not contain a composite type. 1887 // 1888 // Mutable is a mutating operation and unsafe for concurrent use. 1889 func (x *fastReflection_EchoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { 1890 switch fd.FullName() { 1891 case "testpb.EchoRequest.timestamp": 1892 if x.Timestamp == nil { 1893 x.Timestamp = new(timestamppb.Timestamp) 1894 } 1895 return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) 1896 case "testpb.EchoRequest.duration": 1897 if x.Duration == nil { 1898 x.Duration = new(durationpb.Duration) 1899 } 1900 return protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) 1901 case "testpb.EchoRequest.a_message": 1902 if x.AMessage == nil { 1903 x.AMessage = new(AMessage) 1904 } 1905 return protoreflect.ValueOfMessage(x.AMessage.ProtoReflect()) 1906 case "testpb.EchoRequest.a_coin": 1907 if x.ACoin == nil { 1908 x.ACoin = new(v1beta1.Coin) 1909 } 1910 return protoreflect.ValueOfMessage(x.ACoin.ProtoReflect()) 1911 case "testpb.EchoRequest.page": 1912 if x.Page == nil { 1913 x.Page = new(v1beta11.PageRequest) 1914 } 1915 return protoreflect.ValueOfMessage(x.Page.ProtoReflect()) 1916 case "testpb.EchoRequest.bools": 1917 if x.Bools == nil { 1918 x.Bools = []bool{} 1919 } 1920 value := &_EchoRequest_21_list{list: &x.Bools} 1921 return protoreflect.ValueOfList(value) 1922 case "testpb.EchoRequest.uints": 1923 if x.Uints == nil { 1924 x.Uints = []uint32{} 1925 } 1926 value := &_EchoRequest_22_list{list: &x.Uints} 1927 return protoreflect.ValueOfList(value) 1928 case "testpb.EchoRequest.strings": 1929 if x.Strings == nil { 1930 x.Strings = []string{} 1931 } 1932 value := &_EchoRequest_23_list{list: &x.Strings} 1933 return protoreflect.ValueOfList(value) 1934 case "testpb.EchoRequest.enums": 1935 if x.Enums == nil { 1936 x.Enums = []Enum{} 1937 } 1938 value := &_EchoRequest_24_list{list: &x.Enums} 1939 return protoreflect.ValueOfList(value) 1940 case "testpb.EchoRequest.durations": 1941 if x.Durations == nil { 1942 x.Durations = []*durationpb.Duration{} 1943 } 1944 value := &_EchoRequest_25_list{list: &x.Durations} 1945 return protoreflect.ValueOfList(value) 1946 case "testpb.EchoRequest.some_messages": 1947 if x.SomeMessages == nil { 1948 x.SomeMessages = []*AMessage{} 1949 } 1950 value := &_EchoRequest_26_list{list: &x.SomeMessages} 1951 return protoreflect.ValueOfList(value) 1952 case "testpb.EchoRequest.positional3_varargs": 1953 if x.Positional3Varargs == nil { 1954 x.Positional3Varargs = []*v1beta1.Coin{} 1955 } 1956 value := &_EchoRequest_29_list{list: &x.Positional3Varargs} 1957 return protoreflect.ValueOfList(value) 1958 case "testpb.EchoRequest.map_string_string": 1959 if x.MapStringString == nil { 1960 x.MapStringString = make(map[string]string) 1961 } 1962 value := &_EchoRequest_33_map{m: &x.MapStringString} 1963 return protoreflect.ValueOfMap(value) 1964 case "testpb.EchoRequest.map_string_uint32": 1965 if x.MapStringUint32 == nil { 1966 x.MapStringUint32 = make(map[string]uint32) 1967 } 1968 value := &_EchoRequest_34_map{m: &x.MapStringUint32} 1969 return protoreflect.ValueOfMap(value) 1970 case "testpb.EchoRequest.map_string_coin": 1971 if x.MapStringCoin == nil { 1972 x.MapStringCoin = make(map[string]*v1beta1.Coin) 1973 } 1974 value := &_EchoRequest_35_map{m: &x.MapStringCoin} 1975 return protoreflect.ValueOfMap(value) 1976 case "testpb.EchoRequest.coins": 1977 if x.Coins == nil { 1978 x.Coins = []*v1beta1.Coin{} 1979 } 1980 value := &_EchoRequest_38_list{list: &x.Coins} 1981 return protoreflect.ValueOfList(value) 1982 case "testpb.EchoRequest.u32": 1983 panic(fmt.Errorf("field u32 of message testpb.EchoRequest is not mutable")) 1984 case "testpb.EchoRequest.u64": 1985 panic(fmt.Errorf("field u64 of message testpb.EchoRequest is not mutable")) 1986 case "testpb.EchoRequest.str": 1987 panic(fmt.Errorf("field str of message testpb.EchoRequest is not mutable")) 1988 case "testpb.EchoRequest.bz": 1989 panic(fmt.Errorf("field bz of message testpb.EchoRequest is not mutable")) 1990 case "testpb.EchoRequest.i32": 1991 panic(fmt.Errorf("field i32 of message testpb.EchoRequest is not mutable")) 1992 case "testpb.EchoRequest.i64": 1993 panic(fmt.Errorf("field i64 of message testpb.EchoRequest is not mutable")) 1994 case "testpb.EchoRequest.a_bool": 1995 panic(fmt.Errorf("field a_bool of message testpb.EchoRequest is not mutable")) 1996 case "testpb.EchoRequest.an_enum": 1997 panic(fmt.Errorf("field an_enum of message testpb.EchoRequest is not mutable")) 1998 case "testpb.EchoRequest.an_address": 1999 panic(fmt.Errorf("field an_address of message testpb.EchoRequest is not mutable")) 2000 case "testpb.EchoRequest.positional1": 2001 panic(fmt.Errorf("field positional1 of message testpb.EchoRequest is not mutable")) 2002 case "testpb.EchoRequest.positional2": 2003 panic(fmt.Errorf("field positional2 of message testpb.EchoRequest is not mutable")) 2004 case "testpb.EchoRequest.deprecated_field": 2005 panic(fmt.Errorf("field deprecated_field of message testpb.EchoRequest is not mutable")) 2006 case "testpb.EchoRequest.shorthand_deprecated_field": 2007 panic(fmt.Errorf("field shorthand_deprecated_field of message testpb.EchoRequest is not mutable")) 2008 case "testpb.EchoRequest.hidden_bool": 2009 panic(fmt.Errorf("field hidden_bool of message testpb.EchoRequest is not mutable")) 2010 case "testpb.EchoRequest.a_validator_address": 2011 panic(fmt.Errorf("field a_validator_address of message testpb.EchoRequest is not mutable")) 2012 case "testpb.EchoRequest.a_consensus_address": 2013 panic(fmt.Errorf("field a_consensus_address of message testpb.EchoRequest is not mutable")) 2014 default: 2015 if fd.IsExtension() { 2016 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) 2017 } 2018 panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) 2019 } 2020 } 2021 2022 // NewField returns a new value that is assignable to the field 2023 // for the given descriptor. For scalars, this returns the default value. 2024 // For lists, maps, and messages, this returns a new, empty, mutable value. 2025 func (x *fastReflection_EchoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { 2026 switch fd.FullName() { 2027 case "testpb.EchoRequest.u32": 2028 return protoreflect.ValueOfUint32(uint32(0)) 2029 case "testpb.EchoRequest.u64": 2030 return protoreflect.ValueOfUint64(uint64(0)) 2031 case "testpb.EchoRequest.str": 2032 return protoreflect.ValueOfString("") 2033 case "testpb.EchoRequest.bz": 2034 return protoreflect.ValueOfBytes(nil) 2035 case "testpb.EchoRequest.timestamp": 2036 m := new(timestamppb.Timestamp) 2037 return protoreflect.ValueOfMessage(m.ProtoReflect()) 2038 case "testpb.EchoRequest.duration": 2039 m := new(durationpb.Duration) 2040 return protoreflect.ValueOfMessage(m.ProtoReflect()) 2041 case "testpb.EchoRequest.i32": 2042 return protoreflect.ValueOfInt32(int32(0)) 2043 case "testpb.EchoRequest.i64": 2044 return protoreflect.ValueOfInt64(int64(0)) 2045 case "testpb.EchoRequest.a_bool": 2046 return protoreflect.ValueOfBool(false) 2047 case "testpb.EchoRequest.an_enum": 2048 return protoreflect.ValueOfEnum(0) 2049 case "testpb.EchoRequest.a_message": 2050 m := new(AMessage) 2051 return protoreflect.ValueOfMessage(m.ProtoReflect()) 2052 case "testpb.EchoRequest.a_coin": 2053 m := new(v1beta1.Coin) 2054 return protoreflect.ValueOfMessage(m.ProtoReflect()) 2055 case "testpb.EchoRequest.an_address": 2056 return protoreflect.ValueOfString("") 2057 case "testpb.EchoRequest.page": 2058 m := new(v1beta11.PageRequest) 2059 return protoreflect.ValueOfMessage(m.ProtoReflect()) 2060 case "testpb.EchoRequest.bools": 2061 list := []bool{} 2062 return protoreflect.ValueOfList(&_EchoRequest_21_list{list: &list}) 2063 case "testpb.EchoRequest.uints": 2064 list := []uint32{} 2065 return protoreflect.ValueOfList(&_EchoRequest_22_list{list: &list}) 2066 case "testpb.EchoRequest.strings": 2067 list := []string{} 2068 return protoreflect.ValueOfList(&_EchoRequest_23_list{list: &list}) 2069 case "testpb.EchoRequest.enums": 2070 list := []Enum{} 2071 return protoreflect.ValueOfList(&_EchoRequest_24_list{list: &list}) 2072 case "testpb.EchoRequest.durations": 2073 list := []*durationpb.Duration{} 2074 return protoreflect.ValueOfList(&_EchoRequest_25_list{list: &list}) 2075 case "testpb.EchoRequest.some_messages": 2076 list := []*AMessage{} 2077 return protoreflect.ValueOfList(&_EchoRequest_26_list{list: &list}) 2078 case "testpb.EchoRequest.positional1": 2079 return protoreflect.ValueOfInt32(int32(0)) 2080 case "testpb.EchoRequest.positional2": 2081 return protoreflect.ValueOfString("") 2082 case "testpb.EchoRequest.positional3_varargs": 2083 list := []*v1beta1.Coin{} 2084 return protoreflect.ValueOfList(&_EchoRequest_29_list{list: &list}) 2085 case "testpb.EchoRequest.deprecated_field": 2086 return protoreflect.ValueOfString("") 2087 case "testpb.EchoRequest.shorthand_deprecated_field": 2088 return protoreflect.ValueOfString("") 2089 case "testpb.EchoRequest.hidden_bool": 2090 return protoreflect.ValueOfBool(false) 2091 case "testpb.EchoRequest.map_string_string": 2092 m := make(map[string]string) 2093 return protoreflect.ValueOfMap(&_EchoRequest_33_map{m: &m}) 2094 case "testpb.EchoRequest.map_string_uint32": 2095 m := make(map[string]uint32) 2096 return protoreflect.ValueOfMap(&_EchoRequest_34_map{m: &m}) 2097 case "testpb.EchoRequest.map_string_coin": 2098 m := make(map[string]*v1beta1.Coin) 2099 return protoreflect.ValueOfMap(&_EchoRequest_35_map{m: &m}) 2100 case "testpb.EchoRequest.a_validator_address": 2101 return protoreflect.ValueOfString("") 2102 case "testpb.EchoRequest.a_consensus_address": 2103 return protoreflect.ValueOfString("") 2104 case "testpb.EchoRequest.coins": 2105 list := []*v1beta1.Coin{} 2106 return protoreflect.ValueOfList(&_EchoRequest_38_list{list: &list}) 2107 default: 2108 if fd.IsExtension() { 2109 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) 2110 } 2111 panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) 2112 } 2113 } 2114 2115 // WhichOneof reports which field within the oneof is populated, 2116 // returning nil if none are populated. 2117 // It panics if the oneof descriptor does not belong to this message. 2118 func (x *fastReflection_EchoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { 2119 switch d.FullName() { 2120 default: 2121 panic(fmt.Errorf("%s is not a oneof field in testpb.EchoRequest", d.FullName())) 2122 } 2123 panic("unreachable") 2124 } 2125 2126 // GetUnknown retrieves the entire list of unknown fields. 2127 // The caller may only mutate the contents of the RawFields 2128 // if the mutated bytes are stored back into the message with SetUnknown. 2129 func (x *fastReflection_EchoRequest) GetUnknown() protoreflect.RawFields { 2130 return x.unknownFields 2131 } 2132 2133 // SetUnknown stores an entire list of unknown fields. 2134 // The raw fields must be syntactically valid according to the wire format. 2135 // An implementation may panic if this is not the case. 2136 // Once stored, the caller must not mutate the content of the RawFields. 2137 // An empty RawFields may be passed to clear the fields. 2138 // 2139 // SetUnknown is a mutating operation and unsafe for concurrent use. 2140 func (x *fastReflection_EchoRequest) SetUnknown(fields protoreflect.RawFields) { 2141 x.unknownFields = fields 2142 } 2143 2144 // IsValid reports whether the message is valid. 2145 // 2146 // An invalid message is an empty, read-only value. 2147 // 2148 // An invalid message often corresponds to a nil pointer of the concrete 2149 // message type, but the details are implementation dependent. 2150 // Validity is not part of the protobuf data model, and may not 2151 // be preserved in marshaling or other operations. 2152 func (x *fastReflection_EchoRequest) IsValid() bool { 2153 return x != nil 2154 } 2155 2156 // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. 2157 // This method may return nil. 2158 // 2159 // The returned methods type is identical to 2160 // "google.golang.org/protobuf/runtime/protoiface".Methods. 2161 // Consult the protoiface package documentation for details. 2162 func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { 2163 size := func(input protoiface.SizeInput) protoiface.SizeOutput { 2164 x := input.Message.Interface().(*EchoRequest) 2165 if x == nil { 2166 return protoiface.SizeOutput{ 2167 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2168 Size: 0, 2169 } 2170 } 2171 options := runtime.SizeInputToOptions(input) 2172 _ = options 2173 var n int 2174 var l int 2175 _ = l 2176 if x.U32 != 0 { 2177 n += 1 + runtime.Sov(uint64(x.U32)) 2178 } 2179 if x.U64 != 0 { 2180 n += 1 + runtime.Sov(uint64(x.U64)) 2181 } 2182 l = len(x.Str) 2183 if l > 0 { 2184 n += 1 + l + runtime.Sov(uint64(l)) 2185 } 2186 l = len(x.Bz) 2187 if l > 0 { 2188 n += 1 + l + runtime.Sov(uint64(l)) 2189 } 2190 if x.Timestamp != nil { 2191 l = options.Size(x.Timestamp) 2192 n += 1 + l + runtime.Sov(uint64(l)) 2193 } 2194 if x.Duration != nil { 2195 l = options.Size(x.Duration) 2196 n += 1 + l + runtime.Sov(uint64(l)) 2197 } 2198 if x.I32 != 0 { 2199 n += 1 + runtime.Sov(uint64(x.I32)) 2200 } 2201 if x.I64 != 0 { 2202 n += 1 + runtime.Sov(uint64(x.I64)) 2203 } 2204 if x.ABool { 2205 n += 2 2206 } 2207 if x.AnEnum != 0 { 2208 n += 2 + runtime.Sov(uint64(x.AnEnum)) 2209 } 2210 if x.AMessage != nil { 2211 l = options.Size(x.AMessage) 2212 n += 2 + l + runtime.Sov(uint64(l)) 2213 } 2214 if x.ACoin != nil { 2215 l = options.Size(x.ACoin) 2216 n += 2 + l + runtime.Sov(uint64(l)) 2217 } 2218 l = len(x.AnAddress) 2219 if l > 0 { 2220 n += 2 + l + runtime.Sov(uint64(l)) 2221 } 2222 if x.Page != nil { 2223 l = options.Size(x.Page) 2224 n += 2 + l + runtime.Sov(uint64(l)) 2225 } 2226 if len(x.Bools) > 0 { 2227 n += 2 + runtime.Sov(uint64(len(x.Bools))) + len(x.Bools)*1 2228 } 2229 if len(x.Uints) > 0 { 2230 l = 0 2231 for _, e := range x.Uints { 2232 l += runtime.Sov(uint64(e)) 2233 } 2234 n += 2 + runtime.Sov(uint64(l)) + l 2235 } 2236 if len(x.Strings) > 0 { 2237 for _, s := range x.Strings { 2238 l = len(s) 2239 n += 2 + l + runtime.Sov(uint64(l)) 2240 } 2241 } 2242 if len(x.Enums) > 0 { 2243 l = 0 2244 for _, e := range x.Enums { 2245 l += runtime.Sov(uint64(e)) 2246 } 2247 n += 2 + runtime.Sov(uint64(l)) + l 2248 } 2249 if len(x.Durations) > 0 { 2250 for _, e := range x.Durations { 2251 l = options.Size(e) 2252 n += 2 + l + runtime.Sov(uint64(l)) 2253 } 2254 } 2255 if len(x.SomeMessages) > 0 { 2256 for _, e := range x.SomeMessages { 2257 l = options.Size(e) 2258 n += 2 + l + runtime.Sov(uint64(l)) 2259 } 2260 } 2261 if x.Positional1 != 0 { 2262 n += 2 + runtime.Sov(uint64(x.Positional1)) 2263 } 2264 l = len(x.Positional2) 2265 if l > 0 { 2266 n += 2 + l + runtime.Sov(uint64(l)) 2267 } 2268 if len(x.Positional3Varargs) > 0 { 2269 for _, e := range x.Positional3Varargs { 2270 l = options.Size(e) 2271 n += 2 + l + runtime.Sov(uint64(l)) 2272 } 2273 } 2274 l = len(x.DeprecatedField) 2275 if l > 0 { 2276 n += 2 + l + runtime.Sov(uint64(l)) 2277 } 2278 l = len(x.ShorthandDeprecatedField) 2279 if l > 0 { 2280 n += 2 + l + runtime.Sov(uint64(l)) 2281 } 2282 if x.HiddenBool { 2283 n += 3 2284 } 2285 if len(x.MapStringString) > 0 { 2286 SiZeMaP := func(k string, v string) { 2287 mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + len(v) + runtime.Sov(uint64(len(v))) 2288 n += mapEntrySize + 2 + runtime.Sov(uint64(mapEntrySize)) 2289 } 2290 if options.Deterministic { 2291 sortme := make([]string, 0, len(x.MapStringString)) 2292 for k := range x.MapStringString { 2293 sortme = append(sortme, k) 2294 } 2295 sort.Strings(sortme) 2296 for _, k := range sortme { 2297 v := x.MapStringString[k] 2298 SiZeMaP(k, v) 2299 } 2300 } else { 2301 for k, v := range x.MapStringString { 2302 SiZeMaP(k, v) 2303 } 2304 } 2305 } 2306 if len(x.MapStringUint32) > 0 { 2307 SiZeMaP := func(k string, v uint32) { 2308 mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + runtime.Sov(uint64(v)) 2309 n += mapEntrySize + 2 + runtime.Sov(uint64(mapEntrySize)) 2310 } 2311 if options.Deterministic { 2312 sortme := make([]string, 0, len(x.MapStringUint32)) 2313 for k := range x.MapStringUint32 { 2314 sortme = append(sortme, k) 2315 } 2316 sort.Strings(sortme) 2317 for _, k := range sortme { 2318 v := x.MapStringUint32[k] 2319 SiZeMaP(k, v) 2320 } 2321 } else { 2322 for k, v := range x.MapStringUint32 { 2323 SiZeMaP(k, v) 2324 } 2325 } 2326 } 2327 if len(x.MapStringCoin) > 0 { 2328 SiZeMaP := func(k string, v *v1beta1.Coin) { 2329 l := 0 2330 if v != nil { 2331 l = options.Size(v) 2332 } 2333 l += 1 + runtime.Sov(uint64(l)) 2334 mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + l 2335 n += mapEntrySize + 2 + runtime.Sov(uint64(mapEntrySize)) 2336 } 2337 if options.Deterministic { 2338 sortme := make([]string, 0, len(x.MapStringCoin)) 2339 for k := range x.MapStringCoin { 2340 sortme = append(sortme, k) 2341 } 2342 sort.Strings(sortme) 2343 for _, k := range sortme { 2344 v := x.MapStringCoin[k] 2345 SiZeMaP(k, v) 2346 } 2347 } else { 2348 for k, v := range x.MapStringCoin { 2349 SiZeMaP(k, v) 2350 } 2351 } 2352 } 2353 l = len(x.AValidatorAddress) 2354 if l > 0 { 2355 n += 2 + l + runtime.Sov(uint64(l)) 2356 } 2357 l = len(x.AConsensusAddress) 2358 if l > 0 { 2359 n += 2 + l + runtime.Sov(uint64(l)) 2360 } 2361 if len(x.Coins) > 0 { 2362 for _, e := range x.Coins { 2363 l = options.Size(e) 2364 n += 2 + l + runtime.Sov(uint64(l)) 2365 } 2366 } 2367 if x.unknownFields != nil { 2368 n += len(x.unknownFields) 2369 } 2370 return protoiface.SizeOutput{ 2371 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2372 Size: n, 2373 } 2374 } 2375 2376 marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { 2377 x := input.Message.Interface().(*EchoRequest) 2378 if x == nil { 2379 return protoiface.MarshalOutput{ 2380 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2381 Buf: input.Buf, 2382 }, nil 2383 } 2384 options := runtime.MarshalInputToOptions(input) 2385 _ = options 2386 size := options.Size(x) 2387 dAtA := make([]byte, size) 2388 i := len(dAtA) 2389 _ = i 2390 var l int 2391 _ = l 2392 if x.unknownFields != nil { 2393 i -= len(x.unknownFields) 2394 copy(dAtA[i:], x.unknownFields) 2395 } 2396 if len(x.Coins) > 0 { 2397 for iNdEx := len(x.Coins) - 1; iNdEx >= 0; iNdEx-- { 2398 encoded, err := options.Marshal(x.Coins[iNdEx]) 2399 if err != nil { 2400 return protoiface.MarshalOutput{ 2401 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2402 Buf: input.Buf, 2403 }, err 2404 } 2405 i -= len(encoded) 2406 copy(dAtA[i:], encoded) 2407 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2408 i-- 2409 dAtA[i] = 0x2 2410 i-- 2411 dAtA[i] = 0xb2 2412 } 2413 } 2414 if len(x.AConsensusAddress) > 0 { 2415 i -= len(x.AConsensusAddress) 2416 copy(dAtA[i:], x.AConsensusAddress) 2417 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AConsensusAddress))) 2418 i-- 2419 dAtA[i] = 0x2 2420 i-- 2421 dAtA[i] = 0xaa 2422 } 2423 if len(x.AValidatorAddress) > 0 { 2424 i -= len(x.AValidatorAddress) 2425 copy(dAtA[i:], x.AValidatorAddress) 2426 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AValidatorAddress))) 2427 i-- 2428 dAtA[i] = 0x2 2429 i-- 2430 dAtA[i] = 0xa2 2431 } 2432 if len(x.MapStringCoin) > 0 { 2433 MaRsHaLmAp := func(k string, v *v1beta1.Coin) (protoiface.MarshalOutput, error) { 2434 baseI := i 2435 encoded, err := options.Marshal(v) 2436 if err != nil { 2437 return protoiface.MarshalOutput{ 2438 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2439 Buf: input.Buf, 2440 }, err 2441 } 2442 i -= len(encoded) 2443 copy(dAtA[i:], encoded) 2444 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2445 i-- 2446 dAtA[i] = 0x12 2447 i -= len(k) 2448 copy(dAtA[i:], k) 2449 i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) 2450 i-- 2451 dAtA[i] = 0xa 2452 i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) 2453 i-- 2454 dAtA[i] = 0x2 2455 i-- 2456 dAtA[i] = 0x9a 2457 return protoiface.MarshalOutput{}, nil 2458 } 2459 if options.Deterministic { 2460 keysForMapStringCoin := make([]string, 0, len(x.MapStringCoin)) 2461 for k := range x.MapStringCoin { 2462 keysForMapStringCoin = append(keysForMapStringCoin, string(k)) 2463 } 2464 sort.Slice(keysForMapStringCoin, func(i, j int) bool { 2465 return keysForMapStringCoin[i] < keysForMapStringCoin[j] 2466 }) 2467 for iNdEx := len(keysForMapStringCoin) - 1; iNdEx >= 0; iNdEx-- { 2468 v := x.MapStringCoin[string(keysForMapStringCoin[iNdEx])] 2469 out, err := MaRsHaLmAp(keysForMapStringCoin[iNdEx], v) 2470 if err != nil { 2471 return out, err 2472 } 2473 } 2474 } else { 2475 for k := range x.MapStringCoin { 2476 v := x.MapStringCoin[k] 2477 out, err := MaRsHaLmAp(k, v) 2478 if err != nil { 2479 return out, err 2480 } 2481 } 2482 } 2483 } 2484 if len(x.MapStringUint32) > 0 { 2485 MaRsHaLmAp := func(k string, v uint32) (protoiface.MarshalOutput, error) { 2486 baseI := i 2487 i = runtime.EncodeVarint(dAtA, i, uint64(v)) 2488 i-- 2489 dAtA[i] = 0x10 2490 i -= len(k) 2491 copy(dAtA[i:], k) 2492 i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) 2493 i-- 2494 dAtA[i] = 0xa 2495 i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) 2496 i-- 2497 dAtA[i] = 0x2 2498 i-- 2499 dAtA[i] = 0x92 2500 return protoiface.MarshalOutput{}, nil 2501 } 2502 if options.Deterministic { 2503 keysForMapStringUint32 := make([]string, 0, len(x.MapStringUint32)) 2504 for k := range x.MapStringUint32 { 2505 keysForMapStringUint32 = append(keysForMapStringUint32, string(k)) 2506 } 2507 sort.Slice(keysForMapStringUint32, func(i, j int) bool { 2508 return keysForMapStringUint32[i] < keysForMapStringUint32[j] 2509 }) 2510 for iNdEx := len(keysForMapStringUint32) - 1; iNdEx >= 0; iNdEx-- { 2511 v := x.MapStringUint32[string(keysForMapStringUint32[iNdEx])] 2512 out, err := MaRsHaLmAp(keysForMapStringUint32[iNdEx], v) 2513 if err != nil { 2514 return out, err 2515 } 2516 } 2517 } else { 2518 for k := range x.MapStringUint32 { 2519 v := x.MapStringUint32[k] 2520 out, err := MaRsHaLmAp(k, v) 2521 if err != nil { 2522 return out, err 2523 } 2524 } 2525 } 2526 } 2527 if len(x.MapStringString) > 0 { 2528 MaRsHaLmAp := func(k string, v string) (protoiface.MarshalOutput, error) { 2529 baseI := i 2530 i -= len(v) 2531 copy(dAtA[i:], v) 2532 i = runtime.EncodeVarint(dAtA, i, uint64(len(v))) 2533 i-- 2534 dAtA[i] = 0x12 2535 i -= len(k) 2536 copy(dAtA[i:], k) 2537 i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) 2538 i-- 2539 dAtA[i] = 0xa 2540 i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) 2541 i-- 2542 dAtA[i] = 0x2 2543 i-- 2544 dAtA[i] = 0x8a 2545 return protoiface.MarshalOutput{}, nil 2546 } 2547 if options.Deterministic { 2548 keysForMapStringString := make([]string, 0, len(x.MapStringString)) 2549 for k := range x.MapStringString { 2550 keysForMapStringString = append(keysForMapStringString, string(k)) 2551 } 2552 sort.Slice(keysForMapStringString, func(i, j int) bool { 2553 return keysForMapStringString[i] < keysForMapStringString[j] 2554 }) 2555 for iNdEx := len(keysForMapStringString) - 1; iNdEx >= 0; iNdEx-- { 2556 v := x.MapStringString[string(keysForMapStringString[iNdEx])] 2557 out, err := MaRsHaLmAp(keysForMapStringString[iNdEx], v) 2558 if err != nil { 2559 return out, err 2560 } 2561 } 2562 } else { 2563 for k := range x.MapStringString { 2564 v := x.MapStringString[k] 2565 out, err := MaRsHaLmAp(k, v) 2566 if err != nil { 2567 return out, err 2568 } 2569 } 2570 } 2571 } 2572 if x.HiddenBool { 2573 i-- 2574 if x.HiddenBool { 2575 dAtA[i] = 1 2576 } else { 2577 dAtA[i] = 0 2578 } 2579 i-- 2580 dAtA[i] = 0x2 2581 i-- 2582 dAtA[i] = 0x80 2583 } 2584 if len(x.ShorthandDeprecatedField) > 0 { 2585 i -= len(x.ShorthandDeprecatedField) 2586 copy(dAtA[i:], x.ShorthandDeprecatedField) 2587 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ShorthandDeprecatedField))) 2588 i-- 2589 dAtA[i] = 0x1 2590 i-- 2591 dAtA[i] = 0xfa 2592 } 2593 if len(x.DeprecatedField) > 0 { 2594 i -= len(x.DeprecatedField) 2595 copy(dAtA[i:], x.DeprecatedField) 2596 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DeprecatedField))) 2597 i-- 2598 dAtA[i] = 0x1 2599 i-- 2600 dAtA[i] = 0xf2 2601 } 2602 if len(x.Positional3Varargs) > 0 { 2603 for iNdEx := len(x.Positional3Varargs) - 1; iNdEx >= 0; iNdEx-- { 2604 encoded, err := options.Marshal(x.Positional3Varargs[iNdEx]) 2605 if err != nil { 2606 return protoiface.MarshalOutput{ 2607 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2608 Buf: input.Buf, 2609 }, err 2610 } 2611 i -= len(encoded) 2612 copy(dAtA[i:], encoded) 2613 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2614 i-- 2615 dAtA[i] = 0x1 2616 i-- 2617 dAtA[i] = 0xea 2618 } 2619 } 2620 if len(x.Positional2) > 0 { 2621 i -= len(x.Positional2) 2622 copy(dAtA[i:], x.Positional2) 2623 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Positional2))) 2624 i-- 2625 dAtA[i] = 0x1 2626 i-- 2627 dAtA[i] = 0xe2 2628 } 2629 if x.Positional1 != 0 { 2630 i = runtime.EncodeVarint(dAtA, i, uint64(x.Positional1)) 2631 i-- 2632 dAtA[i] = 0x1 2633 i-- 2634 dAtA[i] = 0xd8 2635 } 2636 if len(x.SomeMessages) > 0 { 2637 for iNdEx := len(x.SomeMessages) - 1; iNdEx >= 0; iNdEx-- { 2638 encoded, err := options.Marshal(x.SomeMessages[iNdEx]) 2639 if err != nil { 2640 return protoiface.MarshalOutput{ 2641 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2642 Buf: input.Buf, 2643 }, err 2644 } 2645 i -= len(encoded) 2646 copy(dAtA[i:], encoded) 2647 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2648 i-- 2649 dAtA[i] = 0x1 2650 i-- 2651 dAtA[i] = 0xd2 2652 } 2653 } 2654 if len(x.Durations) > 0 { 2655 for iNdEx := len(x.Durations) - 1; iNdEx >= 0; iNdEx-- { 2656 encoded, err := options.Marshal(x.Durations[iNdEx]) 2657 if err != nil { 2658 return protoiface.MarshalOutput{ 2659 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2660 Buf: input.Buf, 2661 }, err 2662 } 2663 i -= len(encoded) 2664 copy(dAtA[i:], encoded) 2665 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2666 i-- 2667 dAtA[i] = 0x1 2668 i-- 2669 dAtA[i] = 0xca 2670 } 2671 } 2672 if len(x.Enums) > 0 { 2673 var pksize2 int 2674 for _, num := range x.Enums { 2675 pksize2 += runtime.Sov(uint64(num)) 2676 } 2677 i -= pksize2 2678 j1 := i 2679 for _, num1 := range x.Enums { 2680 num := uint64(num1) 2681 for num >= 1<<7 { 2682 dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) 2683 num >>= 7 2684 j1++ 2685 } 2686 dAtA[j1] = uint8(num) 2687 j1++ 2688 } 2689 i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) 2690 i-- 2691 dAtA[i] = 0x1 2692 i-- 2693 dAtA[i] = 0xc2 2694 } 2695 if len(x.Strings) > 0 { 2696 for iNdEx := len(x.Strings) - 1; iNdEx >= 0; iNdEx-- { 2697 i -= len(x.Strings[iNdEx]) 2698 copy(dAtA[i:], x.Strings[iNdEx]) 2699 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Strings[iNdEx]))) 2700 i-- 2701 dAtA[i] = 0x1 2702 i-- 2703 dAtA[i] = 0xba 2704 } 2705 } 2706 if len(x.Uints) > 0 { 2707 var pksize4 int 2708 for _, num := range x.Uints { 2709 pksize4 += runtime.Sov(uint64(num)) 2710 } 2711 i -= pksize4 2712 j3 := i 2713 for _, num := range x.Uints { 2714 for num >= 1<<7 { 2715 dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) 2716 num >>= 7 2717 j3++ 2718 } 2719 dAtA[j3] = uint8(num) 2720 j3++ 2721 } 2722 i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) 2723 i-- 2724 dAtA[i] = 0x1 2725 i-- 2726 dAtA[i] = 0xb2 2727 } 2728 if len(x.Bools) > 0 { 2729 for iNdEx := len(x.Bools) - 1; iNdEx >= 0; iNdEx-- { 2730 i-- 2731 if x.Bools[iNdEx] { 2732 dAtA[i] = 1 2733 } else { 2734 dAtA[i] = 0 2735 } 2736 } 2737 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bools))) 2738 i-- 2739 dAtA[i] = 0x1 2740 i-- 2741 dAtA[i] = 0xaa 2742 } 2743 if x.Page != nil { 2744 encoded, err := options.Marshal(x.Page) 2745 if err != nil { 2746 return protoiface.MarshalOutput{ 2747 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2748 Buf: input.Buf, 2749 }, err 2750 } 2751 i -= len(encoded) 2752 copy(dAtA[i:], encoded) 2753 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2754 i-- 2755 dAtA[i] = 0x1 2756 i-- 2757 dAtA[i] = 0xa2 2758 } 2759 if len(x.AnAddress) > 0 { 2760 i -= len(x.AnAddress) 2761 copy(dAtA[i:], x.AnAddress) 2762 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AnAddress))) 2763 i-- 2764 dAtA[i] = 0x1 2765 i-- 2766 dAtA[i] = 0x9a 2767 } 2768 if x.ACoin != nil { 2769 encoded, err := options.Marshal(x.ACoin) 2770 if err != nil { 2771 return protoiface.MarshalOutput{ 2772 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2773 Buf: input.Buf, 2774 }, err 2775 } 2776 i -= len(encoded) 2777 copy(dAtA[i:], encoded) 2778 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2779 i-- 2780 dAtA[i] = 0x1 2781 i-- 2782 dAtA[i] = 0x92 2783 } 2784 if x.AMessage != nil { 2785 encoded, err := options.Marshal(x.AMessage) 2786 if err != nil { 2787 return protoiface.MarshalOutput{ 2788 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2789 Buf: input.Buf, 2790 }, err 2791 } 2792 i -= len(encoded) 2793 copy(dAtA[i:], encoded) 2794 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2795 i-- 2796 dAtA[i] = 0x1 2797 i-- 2798 dAtA[i] = 0x8a 2799 } 2800 if x.AnEnum != 0 { 2801 i = runtime.EncodeVarint(dAtA, i, uint64(x.AnEnum)) 2802 i-- 2803 dAtA[i] = 0x1 2804 i-- 2805 dAtA[i] = 0x80 2806 } 2807 if x.ABool { 2808 i-- 2809 if x.ABool { 2810 dAtA[i] = 1 2811 } else { 2812 dAtA[i] = 0 2813 } 2814 i-- 2815 dAtA[i] = 0x78 2816 } 2817 if x.I64 != 0 { 2818 i = runtime.EncodeVarint(dAtA, i, uint64(x.I64)) 2819 i-- 2820 dAtA[i] = 0x50 2821 } 2822 if x.I32 != 0 { 2823 i = runtime.EncodeVarint(dAtA, i, uint64(x.I32)) 2824 i-- 2825 dAtA[i] = 0x38 2826 } 2827 if x.Duration != nil { 2828 encoded, err := options.Marshal(x.Duration) 2829 if err != nil { 2830 return protoiface.MarshalOutput{ 2831 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2832 Buf: input.Buf, 2833 }, err 2834 } 2835 i -= len(encoded) 2836 copy(dAtA[i:], encoded) 2837 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2838 i-- 2839 dAtA[i] = 0x32 2840 } 2841 if x.Timestamp != nil { 2842 encoded, err := options.Marshal(x.Timestamp) 2843 if err != nil { 2844 return protoiface.MarshalOutput{ 2845 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2846 Buf: input.Buf, 2847 }, err 2848 } 2849 i -= len(encoded) 2850 copy(dAtA[i:], encoded) 2851 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 2852 i-- 2853 dAtA[i] = 0x2a 2854 } 2855 if len(x.Bz) > 0 { 2856 i -= len(x.Bz) 2857 copy(dAtA[i:], x.Bz) 2858 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bz))) 2859 i-- 2860 dAtA[i] = 0x22 2861 } 2862 if len(x.Str) > 0 { 2863 i -= len(x.Str) 2864 copy(dAtA[i:], x.Str) 2865 i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Str))) 2866 i-- 2867 dAtA[i] = 0x1a 2868 } 2869 if x.U64 != 0 { 2870 i = runtime.EncodeVarint(dAtA, i, uint64(x.U64)) 2871 i-- 2872 dAtA[i] = 0x10 2873 } 2874 if x.U32 != 0 { 2875 i = runtime.EncodeVarint(dAtA, i, uint64(x.U32)) 2876 i-- 2877 dAtA[i] = 0x8 2878 } 2879 if input.Buf != nil { 2880 input.Buf = append(input.Buf, dAtA...) 2881 } else { 2882 input.Buf = dAtA 2883 } 2884 return protoiface.MarshalOutput{ 2885 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2886 Buf: input.Buf, 2887 }, nil 2888 } 2889 unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { 2890 x := input.Message.Interface().(*EchoRequest) 2891 if x == nil { 2892 return protoiface.UnmarshalOutput{ 2893 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 2894 Flags: input.Flags, 2895 }, nil 2896 } 2897 options := runtime.UnmarshalInputToOptions(input) 2898 _ = options 2899 dAtA := input.Buf 2900 l := len(dAtA) 2901 iNdEx := 0 2902 for iNdEx < l { 2903 preIndex := iNdEx 2904 var wire uint64 2905 for shift := uint(0); ; shift += 7 { 2906 if shift >= 64 { 2907 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2908 } 2909 if iNdEx >= l { 2910 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2911 } 2912 b := dAtA[iNdEx] 2913 iNdEx++ 2914 wire |= uint64(b&0x7F) << shift 2915 if b < 0x80 { 2916 break 2917 } 2918 } 2919 fieldNum := int32(wire >> 3) 2920 wireType := int(wire & 0x7) 2921 if wireType == 4 { 2922 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoRequest: wiretype end group for non-group") 2923 } 2924 if fieldNum <= 0 { 2925 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2926 } 2927 switch fieldNum { 2928 case 1: 2929 if wireType != 0 { 2930 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field U32", wireType) 2931 } 2932 x.U32 = 0 2933 for shift := uint(0); ; shift += 7 { 2934 if shift >= 64 { 2935 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2936 } 2937 if iNdEx >= l { 2938 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2939 } 2940 b := dAtA[iNdEx] 2941 iNdEx++ 2942 x.U32 |= uint32(b&0x7F) << shift 2943 if b < 0x80 { 2944 break 2945 } 2946 } 2947 case 2: 2948 if wireType != 0 { 2949 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field U64", wireType) 2950 } 2951 x.U64 = 0 2952 for shift := uint(0); ; shift += 7 { 2953 if shift >= 64 { 2954 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2955 } 2956 if iNdEx >= l { 2957 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2958 } 2959 b := dAtA[iNdEx] 2960 iNdEx++ 2961 x.U64 |= uint64(b&0x7F) << shift 2962 if b < 0x80 { 2963 break 2964 } 2965 } 2966 case 3: 2967 if wireType != 2 { 2968 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Str", wireType) 2969 } 2970 var stringLen uint64 2971 for shift := uint(0); ; shift += 7 { 2972 if shift >= 64 { 2973 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 2974 } 2975 if iNdEx >= l { 2976 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2977 } 2978 b := dAtA[iNdEx] 2979 iNdEx++ 2980 stringLen |= uint64(b&0x7F) << shift 2981 if b < 0x80 { 2982 break 2983 } 2984 } 2985 intStringLen := int(stringLen) 2986 if intStringLen < 0 { 2987 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2988 } 2989 postIndex := iNdEx + intStringLen 2990 if postIndex < 0 { 2991 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 2992 } 2993 if postIndex > l { 2994 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 2995 } 2996 x.Str = string(dAtA[iNdEx:postIndex]) 2997 iNdEx = postIndex 2998 case 4: 2999 if wireType != 2 { 3000 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bz", wireType) 3001 } 3002 var byteLen int 3003 for shift := uint(0); ; shift += 7 { 3004 if shift >= 64 { 3005 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3006 } 3007 if iNdEx >= l { 3008 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3009 } 3010 b := dAtA[iNdEx] 3011 iNdEx++ 3012 byteLen |= int(b&0x7F) << shift 3013 if b < 0x80 { 3014 break 3015 } 3016 } 3017 if byteLen < 0 { 3018 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3019 } 3020 postIndex := iNdEx + byteLen 3021 if postIndex < 0 { 3022 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3023 } 3024 if postIndex > l { 3025 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3026 } 3027 x.Bz = append(x.Bz[:0], dAtA[iNdEx:postIndex]...) 3028 if x.Bz == nil { 3029 x.Bz = []byte{} 3030 } 3031 iNdEx = postIndex 3032 case 5: 3033 if wireType != 2 { 3034 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 3035 } 3036 var msglen int 3037 for shift := uint(0); ; shift += 7 { 3038 if shift >= 64 { 3039 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3040 } 3041 if iNdEx >= l { 3042 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3043 } 3044 b := dAtA[iNdEx] 3045 iNdEx++ 3046 msglen |= int(b&0x7F) << shift 3047 if b < 0x80 { 3048 break 3049 } 3050 } 3051 if msglen < 0 { 3052 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3053 } 3054 postIndex := iNdEx + msglen 3055 if postIndex < 0 { 3056 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3057 } 3058 if postIndex > l { 3059 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3060 } 3061 if x.Timestamp == nil { 3062 x.Timestamp = ×tamppb.Timestamp{} 3063 } 3064 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { 3065 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3066 } 3067 iNdEx = postIndex 3068 case 6: 3069 if wireType != 2 { 3070 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) 3071 } 3072 var msglen int 3073 for shift := uint(0); ; shift += 7 { 3074 if shift >= 64 { 3075 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3076 } 3077 if iNdEx >= l { 3078 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3079 } 3080 b := dAtA[iNdEx] 3081 iNdEx++ 3082 msglen |= int(b&0x7F) << shift 3083 if b < 0x80 { 3084 break 3085 } 3086 } 3087 if msglen < 0 { 3088 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3089 } 3090 postIndex := iNdEx + msglen 3091 if postIndex < 0 { 3092 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3093 } 3094 if postIndex > l { 3095 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3096 } 3097 if x.Duration == nil { 3098 x.Duration = &durationpb.Duration{} 3099 } 3100 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Duration); err != nil { 3101 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3102 } 3103 iNdEx = postIndex 3104 case 7: 3105 if wireType != 0 { 3106 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field I32", wireType) 3107 } 3108 x.I32 = 0 3109 for shift := uint(0); ; shift += 7 { 3110 if shift >= 64 { 3111 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3112 } 3113 if iNdEx >= l { 3114 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3115 } 3116 b := dAtA[iNdEx] 3117 iNdEx++ 3118 x.I32 |= int32(b&0x7F) << shift 3119 if b < 0x80 { 3120 break 3121 } 3122 } 3123 case 10: 3124 if wireType != 0 { 3125 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field I64", wireType) 3126 } 3127 x.I64 = 0 3128 for shift := uint(0); ; shift += 7 { 3129 if shift >= 64 { 3130 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3131 } 3132 if iNdEx >= l { 3133 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3134 } 3135 b := dAtA[iNdEx] 3136 iNdEx++ 3137 x.I64 |= int64(b&0x7F) << shift 3138 if b < 0x80 { 3139 break 3140 } 3141 } 3142 case 15: 3143 if wireType != 0 { 3144 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ABool", wireType) 3145 } 3146 var v int 3147 for shift := uint(0); ; shift += 7 { 3148 if shift >= 64 { 3149 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3150 } 3151 if iNdEx >= l { 3152 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3153 } 3154 b := dAtA[iNdEx] 3155 iNdEx++ 3156 v |= int(b&0x7F) << shift 3157 if b < 0x80 { 3158 break 3159 } 3160 } 3161 x.ABool = bool(v != 0) 3162 case 16: 3163 if wireType != 0 { 3164 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnEnum", wireType) 3165 } 3166 x.AnEnum = 0 3167 for shift := uint(0); ; shift += 7 { 3168 if shift >= 64 { 3169 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3170 } 3171 if iNdEx >= l { 3172 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3173 } 3174 b := dAtA[iNdEx] 3175 iNdEx++ 3176 x.AnEnum |= Enum(b&0x7F) << shift 3177 if b < 0x80 { 3178 break 3179 } 3180 } 3181 case 17: 3182 if wireType != 2 { 3183 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AMessage", wireType) 3184 } 3185 var msglen int 3186 for shift := uint(0); ; shift += 7 { 3187 if shift >= 64 { 3188 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3189 } 3190 if iNdEx >= l { 3191 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3192 } 3193 b := dAtA[iNdEx] 3194 iNdEx++ 3195 msglen |= int(b&0x7F) << shift 3196 if b < 0x80 { 3197 break 3198 } 3199 } 3200 if msglen < 0 { 3201 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3202 } 3203 postIndex := iNdEx + msglen 3204 if postIndex < 0 { 3205 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3206 } 3207 if postIndex > l { 3208 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3209 } 3210 if x.AMessage == nil { 3211 x.AMessage = &AMessage{} 3212 } 3213 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AMessage); err != nil { 3214 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3215 } 3216 iNdEx = postIndex 3217 case 18: 3218 if wireType != 2 { 3219 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ACoin", wireType) 3220 } 3221 var msglen int 3222 for shift := uint(0); ; shift += 7 { 3223 if shift >= 64 { 3224 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3225 } 3226 if iNdEx >= l { 3227 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3228 } 3229 b := dAtA[iNdEx] 3230 iNdEx++ 3231 msglen |= int(b&0x7F) << shift 3232 if b < 0x80 { 3233 break 3234 } 3235 } 3236 if msglen < 0 { 3237 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3238 } 3239 postIndex := iNdEx + msglen 3240 if postIndex < 0 { 3241 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3242 } 3243 if postIndex > l { 3244 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3245 } 3246 if x.ACoin == nil { 3247 x.ACoin = &v1beta1.Coin{} 3248 } 3249 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ACoin); err != nil { 3250 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3251 } 3252 iNdEx = postIndex 3253 case 19: 3254 if wireType != 2 { 3255 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnAddress", wireType) 3256 } 3257 var stringLen uint64 3258 for shift := uint(0); ; shift += 7 { 3259 if shift >= 64 { 3260 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3261 } 3262 if iNdEx >= l { 3263 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3264 } 3265 b := dAtA[iNdEx] 3266 iNdEx++ 3267 stringLen |= uint64(b&0x7F) << shift 3268 if b < 0x80 { 3269 break 3270 } 3271 } 3272 intStringLen := int(stringLen) 3273 if intStringLen < 0 { 3274 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3275 } 3276 postIndex := iNdEx + intStringLen 3277 if postIndex < 0 { 3278 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3279 } 3280 if postIndex > l { 3281 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3282 } 3283 x.AnAddress = string(dAtA[iNdEx:postIndex]) 3284 iNdEx = postIndex 3285 case 20: 3286 if wireType != 2 { 3287 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) 3288 } 3289 var msglen int 3290 for shift := uint(0); ; shift += 7 { 3291 if shift >= 64 { 3292 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3293 } 3294 if iNdEx >= l { 3295 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3296 } 3297 b := dAtA[iNdEx] 3298 iNdEx++ 3299 msglen |= int(b&0x7F) << shift 3300 if b < 0x80 { 3301 break 3302 } 3303 } 3304 if msglen < 0 { 3305 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3306 } 3307 postIndex := iNdEx + msglen 3308 if postIndex < 0 { 3309 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3310 } 3311 if postIndex > l { 3312 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3313 } 3314 if x.Page == nil { 3315 x.Page = &v1beta11.PageRequest{} 3316 } 3317 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Page); err != nil { 3318 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3319 } 3320 iNdEx = postIndex 3321 case 21: 3322 if wireType == 0 { 3323 var v int 3324 for shift := uint(0); ; shift += 7 { 3325 if shift >= 64 { 3326 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3327 } 3328 if iNdEx >= l { 3329 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3330 } 3331 b := dAtA[iNdEx] 3332 iNdEx++ 3333 v |= int(b&0x7F) << shift 3334 if b < 0x80 { 3335 break 3336 } 3337 } 3338 x.Bools = append(x.Bools, bool(v != 0)) 3339 } else if wireType == 2 { 3340 var packedLen int 3341 for shift := uint(0); ; shift += 7 { 3342 if shift >= 64 { 3343 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3344 } 3345 if iNdEx >= l { 3346 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3347 } 3348 b := dAtA[iNdEx] 3349 iNdEx++ 3350 packedLen |= int(b&0x7F) << shift 3351 if b < 0x80 { 3352 break 3353 } 3354 } 3355 if packedLen < 0 { 3356 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3357 } 3358 postIndex := iNdEx + packedLen 3359 if postIndex < 0 { 3360 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3361 } 3362 if postIndex > l { 3363 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3364 } 3365 var elementCount int 3366 elementCount = packedLen 3367 if elementCount != 0 && len(x.Bools) == 0 { 3368 x.Bools = make([]bool, 0, elementCount) 3369 } 3370 for iNdEx < postIndex { 3371 var v int 3372 for shift := uint(0); ; shift += 7 { 3373 if shift >= 64 { 3374 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3375 } 3376 if iNdEx >= l { 3377 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3378 } 3379 b := dAtA[iNdEx] 3380 iNdEx++ 3381 v |= int(b&0x7F) << shift 3382 if b < 0x80 { 3383 break 3384 } 3385 } 3386 x.Bools = append(x.Bools, bool(v != 0)) 3387 } 3388 } else { 3389 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bools", wireType) 3390 } 3391 case 22: 3392 if wireType == 0 { 3393 var v uint32 3394 for shift := uint(0); ; shift += 7 { 3395 if shift >= 64 { 3396 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3397 } 3398 if iNdEx >= l { 3399 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3400 } 3401 b := dAtA[iNdEx] 3402 iNdEx++ 3403 v |= uint32(b&0x7F) << shift 3404 if b < 0x80 { 3405 break 3406 } 3407 } 3408 x.Uints = append(x.Uints, v) 3409 } else if wireType == 2 { 3410 var packedLen int 3411 for shift := uint(0); ; shift += 7 { 3412 if shift >= 64 { 3413 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3414 } 3415 if iNdEx >= l { 3416 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3417 } 3418 b := dAtA[iNdEx] 3419 iNdEx++ 3420 packedLen |= int(b&0x7F) << shift 3421 if b < 0x80 { 3422 break 3423 } 3424 } 3425 if packedLen < 0 { 3426 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3427 } 3428 postIndex := iNdEx + packedLen 3429 if postIndex < 0 { 3430 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3431 } 3432 if postIndex > l { 3433 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3434 } 3435 var elementCount int 3436 var count int 3437 for _, integer := range dAtA[iNdEx:postIndex] { 3438 if integer < 128 { 3439 count++ 3440 } 3441 } 3442 elementCount = count 3443 if elementCount != 0 && len(x.Uints) == 0 { 3444 x.Uints = make([]uint32, 0, elementCount) 3445 } 3446 for iNdEx < postIndex { 3447 var v uint32 3448 for shift := uint(0); ; shift += 7 { 3449 if shift >= 64 { 3450 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3451 } 3452 if iNdEx >= l { 3453 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3454 } 3455 b := dAtA[iNdEx] 3456 iNdEx++ 3457 v |= uint32(b&0x7F) << shift 3458 if b < 0x80 { 3459 break 3460 } 3461 } 3462 x.Uints = append(x.Uints, v) 3463 } 3464 } else { 3465 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Uints", wireType) 3466 } 3467 case 23: 3468 if wireType != 2 { 3469 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Strings", wireType) 3470 } 3471 var stringLen uint64 3472 for shift := uint(0); ; shift += 7 { 3473 if shift >= 64 { 3474 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3475 } 3476 if iNdEx >= l { 3477 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3478 } 3479 b := dAtA[iNdEx] 3480 iNdEx++ 3481 stringLen |= uint64(b&0x7F) << shift 3482 if b < 0x80 { 3483 break 3484 } 3485 } 3486 intStringLen := int(stringLen) 3487 if intStringLen < 0 { 3488 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3489 } 3490 postIndex := iNdEx + intStringLen 3491 if postIndex < 0 { 3492 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3493 } 3494 if postIndex > l { 3495 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3496 } 3497 x.Strings = append(x.Strings, string(dAtA[iNdEx:postIndex])) 3498 iNdEx = postIndex 3499 case 24: 3500 if wireType == 0 { 3501 var v Enum 3502 for shift := uint(0); ; shift += 7 { 3503 if shift >= 64 { 3504 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3505 } 3506 if iNdEx >= l { 3507 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3508 } 3509 b := dAtA[iNdEx] 3510 iNdEx++ 3511 v |= Enum(b&0x7F) << shift 3512 if b < 0x80 { 3513 break 3514 } 3515 } 3516 x.Enums = append(x.Enums, v) 3517 } else if wireType == 2 { 3518 var packedLen int 3519 for shift := uint(0); ; shift += 7 { 3520 if shift >= 64 { 3521 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3522 } 3523 if iNdEx >= l { 3524 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3525 } 3526 b := dAtA[iNdEx] 3527 iNdEx++ 3528 packedLen |= int(b&0x7F) << shift 3529 if b < 0x80 { 3530 break 3531 } 3532 } 3533 if packedLen < 0 { 3534 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3535 } 3536 postIndex := iNdEx + packedLen 3537 if postIndex < 0 { 3538 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3539 } 3540 if postIndex > l { 3541 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3542 } 3543 var elementCount int 3544 if elementCount != 0 && len(x.Enums) == 0 { 3545 x.Enums = make([]Enum, 0, elementCount) 3546 } 3547 for iNdEx < postIndex { 3548 var v Enum 3549 for shift := uint(0); ; shift += 7 { 3550 if shift >= 64 { 3551 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3552 } 3553 if iNdEx >= l { 3554 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3555 } 3556 b := dAtA[iNdEx] 3557 iNdEx++ 3558 v |= Enum(b&0x7F) << shift 3559 if b < 0x80 { 3560 break 3561 } 3562 } 3563 x.Enums = append(x.Enums, v) 3564 } 3565 } else { 3566 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Enums", wireType) 3567 } 3568 case 25: 3569 if wireType != 2 { 3570 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Durations", wireType) 3571 } 3572 var msglen int 3573 for shift := uint(0); ; shift += 7 { 3574 if shift >= 64 { 3575 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3576 } 3577 if iNdEx >= l { 3578 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3579 } 3580 b := dAtA[iNdEx] 3581 iNdEx++ 3582 msglen |= int(b&0x7F) << shift 3583 if b < 0x80 { 3584 break 3585 } 3586 } 3587 if msglen < 0 { 3588 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3589 } 3590 postIndex := iNdEx + msglen 3591 if postIndex < 0 { 3592 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3593 } 3594 if postIndex > l { 3595 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3596 } 3597 x.Durations = append(x.Durations, &durationpb.Duration{}) 3598 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Durations[len(x.Durations)-1]); err != nil { 3599 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3600 } 3601 iNdEx = postIndex 3602 case 26: 3603 if wireType != 2 { 3604 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SomeMessages", wireType) 3605 } 3606 var msglen int 3607 for shift := uint(0); ; shift += 7 { 3608 if shift >= 64 { 3609 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3610 } 3611 if iNdEx >= l { 3612 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3613 } 3614 b := dAtA[iNdEx] 3615 iNdEx++ 3616 msglen |= int(b&0x7F) << shift 3617 if b < 0x80 { 3618 break 3619 } 3620 } 3621 if msglen < 0 { 3622 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3623 } 3624 postIndex := iNdEx + msglen 3625 if postIndex < 0 { 3626 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3627 } 3628 if postIndex > l { 3629 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3630 } 3631 x.SomeMessages = append(x.SomeMessages, &AMessage{}) 3632 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SomeMessages[len(x.SomeMessages)-1]); err != nil { 3633 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3634 } 3635 iNdEx = postIndex 3636 case 27: 3637 if wireType != 0 { 3638 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Positional1", wireType) 3639 } 3640 x.Positional1 = 0 3641 for shift := uint(0); ; shift += 7 { 3642 if shift >= 64 { 3643 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3644 } 3645 if iNdEx >= l { 3646 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3647 } 3648 b := dAtA[iNdEx] 3649 iNdEx++ 3650 x.Positional1 |= int32(b&0x7F) << shift 3651 if b < 0x80 { 3652 break 3653 } 3654 } 3655 case 28: 3656 if wireType != 2 { 3657 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Positional2", wireType) 3658 } 3659 var stringLen uint64 3660 for shift := uint(0); ; shift += 7 { 3661 if shift >= 64 { 3662 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3663 } 3664 if iNdEx >= l { 3665 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3666 } 3667 b := dAtA[iNdEx] 3668 iNdEx++ 3669 stringLen |= uint64(b&0x7F) << shift 3670 if b < 0x80 { 3671 break 3672 } 3673 } 3674 intStringLen := int(stringLen) 3675 if intStringLen < 0 { 3676 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3677 } 3678 postIndex := iNdEx + intStringLen 3679 if postIndex < 0 { 3680 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3681 } 3682 if postIndex > l { 3683 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3684 } 3685 x.Positional2 = string(dAtA[iNdEx:postIndex]) 3686 iNdEx = postIndex 3687 case 29: 3688 if wireType != 2 { 3689 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Positional3Varargs", wireType) 3690 } 3691 var msglen int 3692 for shift := uint(0); ; shift += 7 { 3693 if shift >= 64 { 3694 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3695 } 3696 if iNdEx >= l { 3697 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3698 } 3699 b := dAtA[iNdEx] 3700 iNdEx++ 3701 msglen |= int(b&0x7F) << shift 3702 if b < 0x80 { 3703 break 3704 } 3705 } 3706 if msglen < 0 { 3707 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3708 } 3709 postIndex := iNdEx + msglen 3710 if postIndex < 0 { 3711 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3712 } 3713 if postIndex > l { 3714 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3715 } 3716 x.Positional3Varargs = append(x.Positional3Varargs, &v1beta1.Coin{}) 3717 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Positional3Varargs[len(x.Positional3Varargs)-1]); err != nil { 3718 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3719 } 3720 iNdEx = postIndex 3721 case 30: 3722 if wireType != 2 { 3723 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DeprecatedField", wireType) 3724 } 3725 var stringLen uint64 3726 for shift := uint(0); ; shift += 7 { 3727 if shift >= 64 { 3728 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3729 } 3730 if iNdEx >= l { 3731 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3732 } 3733 b := dAtA[iNdEx] 3734 iNdEx++ 3735 stringLen |= uint64(b&0x7F) << shift 3736 if b < 0x80 { 3737 break 3738 } 3739 } 3740 intStringLen := int(stringLen) 3741 if intStringLen < 0 { 3742 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3743 } 3744 postIndex := iNdEx + intStringLen 3745 if postIndex < 0 { 3746 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3747 } 3748 if postIndex > l { 3749 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3750 } 3751 x.DeprecatedField = string(dAtA[iNdEx:postIndex]) 3752 iNdEx = postIndex 3753 case 31: 3754 if wireType != 2 { 3755 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ShorthandDeprecatedField", wireType) 3756 } 3757 var stringLen uint64 3758 for shift := uint(0); ; shift += 7 { 3759 if shift >= 64 { 3760 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3761 } 3762 if iNdEx >= l { 3763 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3764 } 3765 b := dAtA[iNdEx] 3766 iNdEx++ 3767 stringLen |= uint64(b&0x7F) << shift 3768 if b < 0x80 { 3769 break 3770 } 3771 } 3772 intStringLen := int(stringLen) 3773 if intStringLen < 0 { 3774 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3775 } 3776 postIndex := iNdEx + intStringLen 3777 if postIndex < 0 { 3778 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3779 } 3780 if postIndex > l { 3781 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3782 } 3783 x.ShorthandDeprecatedField = string(dAtA[iNdEx:postIndex]) 3784 iNdEx = postIndex 3785 case 32: 3786 if wireType != 0 { 3787 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HiddenBool", wireType) 3788 } 3789 var v int 3790 for shift := uint(0); ; shift += 7 { 3791 if shift >= 64 { 3792 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3793 } 3794 if iNdEx >= l { 3795 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3796 } 3797 b := dAtA[iNdEx] 3798 iNdEx++ 3799 v |= int(b&0x7F) << shift 3800 if b < 0x80 { 3801 break 3802 } 3803 } 3804 x.HiddenBool = bool(v != 0) 3805 case 33: 3806 if wireType != 2 { 3807 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapStringString", wireType) 3808 } 3809 var msglen int 3810 for shift := uint(0); ; shift += 7 { 3811 if shift >= 64 { 3812 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3813 } 3814 if iNdEx >= l { 3815 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3816 } 3817 b := dAtA[iNdEx] 3818 iNdEx++ 3819 msglen |= int(b&0x7F) << shift 3820 if b < 0x80 { 3821 break 3822 } 3823 } 3824 if msglen < 0 { 3825 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3826 } 3827 postIndex := iNdEx + msglen 3828 if postIndex < 0 { 3829 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3830 } 3831 if postIndex > l { 3832 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3833 } 3834 if x.MapStringString == nil { 3835 x.MapStringString = make(map[string]string) 3836 } 3837 var mapkey string 3838 var mapvalue string 3839 for iNdEx < postIndex { 3840 entryPreIndex := iNdEx 3841 var wire uint64 3842 for shift := uint(0); ; shift += 7 { 3843 if shift >= 64 { 3844 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3845 } 3846 if iNdEx >= l { 3847 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3848 } 3849 b := dAtA[iNdEx] 3850 iNdEx++ 3851 wire |= uint64(b&0x7F) << shift 3852 if b < 0x80 { 3853 break 3854 } 3855 } 3856 fieldNum := int32(wire >> 3) 3857 if fieldNum == 1 { 3858 var stringLenmapkey uint64 3859 for shift := uint(0); ; shift += 7 { 3860 if shift >= 64 { 3861 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3862 } 3863 if iNdEx >= l { 3864 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3865 } 3866 b := dAtA[iNdEx] 3867 iNdEx++ 3868 stringLenmapkey |= uint64(b&0x7F) << shift 3869 if b < 0x80 { 3870 break 3871 } 3872 } 3873 intStringLenmapkey := int(stringLenmapkey) 3874 if intStringLenmapkey < 0 { 3875 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3876 } 3877 postStringIndexmapkey := iNdEx + intStringLenmapkey 3878 if postStringIndexmapkey < 0 { 3879 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3880 } 3881 if postStringIndexmapkey > l { 3882 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3883 } 3884 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 3885 iNdEx = postStringIndexmapkey 3886 } else if fieldNum == 2 { 3887 var stringLenmapvalue uint64 3888 for shift := uint(0); ; shift += 7 { 3889 if shift >= 64 { 3890 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3891 } 3892 if iNdEx >= l { 3893 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3894 } 3895 b := dAtA[iNdEx] 3896 iNdEx++ 3897 stringLenmapvalue |= uint64(b&0x7F) << shift 3898 if b < 0x80 { 3899 break 3900 } 3901 } 3902 intStringLenmapvalue := int(stringLenmapvalue) 3903 if intStringLenmapvalue < 0 { 3904 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3905 } 3906 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 3907 if postStringIndexmapvalue < 0 { 3908 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3909 } 3910 if postStringIndexmapvalue > l { 3911 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3912 } 3913 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 3914 iNdEx = postStringIndexmapvalue 3915 } else { 3916 iNdEx = entryPreIndex 3917 skippy, err := runtime.Skip(dAtA[iNdEx:]) 3918 if err != nil { 3919 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 3920 } 3921 if (skippy < 0) || (iNdEx+skippy) < 0 { 3922 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3923 } 3924 if (iNdEx + skippy) > postIndex { 3925 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3926 } 3927 iNdEx += skippy 3928 } 3929 } 3930 x.MapStringString[mapkey] = mapvalue 3931 iNdEx = postIndex 3932 case 34: 3933 if wireType != 2 { 3934 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapStringUint32", wireType) 3935 } 3936 var msglen int 3937 for shift := uint(0); ; shift += 7 { 3938 if shift >= 64 { 3939 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3940 } 3941 if iNdEx >= l { 3942 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3943 } 3944 b := dAtA[iNdEx] 3945 iNdEx++ 3946 msglen |= int(b&0x7F) << shift 3947 if b < 0x80 { 3948 break 3949 } 3950 } 3951 if msglen < 0 { 3952 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3953 } 3954 postIndex := iNdEx + msglen 3955 if postIndex < 0 { 3956 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 3957 } 3958 if postIndex > l { 3959 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3960 } 3961 if x.MapStringUint32 == nil { 3962 x.MapStringUint32 = make(map[string]uint32) 3963 } 3964 var mapkey string 3965 var mapvalue uint32 3966 for iNdEx < postIndex { 3967 entryPreIndex := iNdEx 3968 var wire uint64 3969 for shift := uint(0); ; shift += 7 { 3970 if shift >= 64 { 3971 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3972 } 3973 if iNdEx >= l { 3974 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3975 } 3976 b := dAtA[iNdEx] 3977 iNdEx++ 3978 wire |= uint64(b&0x7F) << shift 3979 if b < 0x80 { 3980 break 3981 } 3982 } 3983 fieldNum := int32(wire >> 3) 3984 if fieldNum == 1 { 3985 var stringLenmapkey uint64 3986 for shift := uint(0); ; shift += 7 { 3987 if shift >= 64 { 3988 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 3989 } 3990 if iNdEx >= l { 3991 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 3992 } 3993 b := dAtA[iNdEx] 3994 iNdEx++ 3995 stringLenmapkey |= uint64(b&0x7F) << shift 3996 if b < 0x80 { 3997 break 3998 } 3999 } 4000 intStringLenmapkey := int(stringLenmapkey) 4001 if intStringLenmapkey < 0 { 4002 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4003 } 4004 postStringIndexmapkey := iNdEx + intStringLenmapkey 4005 if postStringIndexmapkey < 0 { 4006 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4007 } 4008 if postStringIndexmapkey > l { 4009 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4010 } 4011 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 4012 iNdEx = postStringIndexmapkey 4013 } else if fieldNum == 2 { 4014 for shift := uint(0); ; shift += 7 { 4015 if shift >= 64 { 4016 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4017 } 4018 if iNdEx >= l { 4019 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4020 } 4021 b := dAtA[iNdEx] 4022 iNdEx++ 4023 mapvalue |= uint32(b&0x7F) << shift 4024 if b < 0x80 { 4025 break 4026 } 4027 } 4028 } else { 4029 iNdEx = entryPreIndex 4030 skippy, err := runtime.Skip(dAtA[iNdEx:]) 4031 if err != nil { 4032 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4033 } 4034 if (skippy < 0) || (iNdEx+skippy) < 0 { 4035 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4036 } 4037 if (iNdEx + skippy) > postIndex { 4038 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4039 } 4040 iNdEx += skippy 4041 } 4042 } 4043 x.MapStringUint32[mapkey] = mapvalue 4044 iNdEx = postIndex 4045 case 35: 4046 if wireType != 2 { 4047 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapStringCoin", wireType) 4048 } 4049 var msglen int 4050 for shift := uint(0); ; shift += 7 { 4051 if shift >= 64 { 4052 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4053 } 4054 if iNdEx >= l { 4055 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4056 } 4057 b := dAtA[iNdEx] 4058 iNdEx++ 4059 msglen |= int(b&0x7F) << shift 4060 if b < 0x80 { 4061 break 4062 } 4063 } 4064 if msglen < 0 { 4065 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4066 } 4067 postIndex := iNdEx + msglen 4068 if postIndex < 0 { 4069 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4070 } 4071 if postIndex > l { 4072 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4073 } 4074 if x.MapStringCoin == nil { 4075 x.MapStringCoin = make(map[string]*v1beta1.Coin) 4076 } 4077 var mapkey string 4078 var mapvalue *v1beta1.Coin 4079 for iNdEx < postIndex { 4080 entryPreIndex := iNdEx 4081 var wire uint64 4082 for shift := uint(0); ; shift += 7 { 4083 if shift >= 64 { 4084 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4085 } 4086 if iNdEx >= l { 4087 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4088 } 4089 b := dAtA[iNdEx] 4090 iNdEx++ 4091 wire |= uint64(b&0x7F) << shift 4092 if b < 0x80 { 4093 break 4094 } 4095 } 4096 fieldNum := int32(wire >> 3) 4097 if fieldNum == 1 { 4098 var stringLenmapkey uint64 4099 for shift := uint(0); ; shift += 7 { 4100 if shift >= 64 { 4101 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4102 } 4103 if iNdEx >= l { 4104 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4105 } 4106 b := dAtA[iNdEx] 4107 iNdEx++ 4108 stringLenmapkey |= uint64(b&0x7F) << shift 4109 if b < 0x80 { 4110 break 4111 } 4112 } 4113 intStringLenmapkey := int(stringLenmapkey) 4114 if intStringLenmapkey < 0 { 4115 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4116 } 4117 postStringIndexmapkey := iNdEx + intStringLenmapkey 4118 if postStringIndexmapkey < 0 { 4119 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4120 } 4121 if postStringIndexmapkey > l { 4122 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4123 } 4124 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 4125 iNdEx = postStringIndexmapkey 4126 } else if fieldNum == 2 { 4127 var mapmsglen int 4128 for shift := uint(0); ; shift += 7 { 4129 if shift >= 64 { 4130 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4131 } 4132 if iNdEx >= l { 4133 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4134 } 4135 b := dAtA[iNdEx] 4136 iNdEx++ 4137 mapmsglen |= int(b&0x7F) << shift 4138 if b < 0x80 { 4139 break 4140 } 4141 } 4142 if mapmsglen < 0 { 4143 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4144 } 4145 postmsgIndex := iNdEx + mapmsglen 4146 if postmsgIndex < 0 { 4147 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4148 } 4149 if postmsgIndex > l { 4150 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4151 } 4152 mapvalue = &v1beta1.Coin{} 4153 if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil { 4154 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4155 } 4156 iNdEx = postmsgIndex 4157 } else { 4158 iNdEx = entryPreIndex 4159 skippy, err := runtime.Skip(dAtA[iNdEx:]) 4160 if err != nil { 4161 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4162 } 4163 if (skippy < 0) || (iNdEx+skippy) < 0 { 4164 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4165 } 4166 if (iNdEx + skippy) > postIndex { 4167 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4168 } 4169 iNdEx += skippy 4170 } 4171 } 4172 x.MapStringCoin[mapkey] = mapvalue 4173 iNdEx = postIndex 4174 case 36: 4175 if wireType != 2 { 4176 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AValidatorAddress", wireType) 4177 } 4178 var stringLen uint64 4179 for shift := uint(0); ; shift += 7 { 4180 if shift >= 64 { 4181 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4182 } 4183 if iNdEx >= l { 4184 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4185 } 4186 b := dAtA[iNdEx] 4187 iNdEx++ 4188 stringLen |= uint64(b&0x7F) << shift 4189 if b < 0x80 { 4190 break 4191 } 4192 } 4193 intStringLen := int(stringLen) 4194 if intStringLen < 0 { 4195 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4196 } 4197 postIndex := iNdEx + intStringLen 4198 if postIndex < 0 { 4199 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4200 } 4201 if postIndex > l { 4202 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4203 } 4204 x.AValidatorAddress = string(dAtA[iNdEx:postIndex]) 4205 iNdEx = postIndex 4206 case 37: 4207 if wireType != 2 { 4208 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AConsensusAddress", wireType) 4209 } 4210 var stringLen uint64 4211 for shift := uint(0); ; shift += 7 { 4212 if shift >= 64 { 4213 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4214 } 4215 if iNdEx >= l { 4216 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4217 } 4218 b := dAtA[iNdEx] 4219 iNdEx++ 4220 stringLen |= uint64(b&0x7F) << shift 4221 if b < 0x80 { 4222 break 4223 } 4224 } 4225 intStringLen := int(stringLen) 4226 if intStringLen < 0 { 4227 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4228 } 4229 postIndex := iNdEx + intStringLen 4230 if postIndex < 0 { 4231 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4232 } 4233 if postIndex > l { 4234 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4235 } 4236 x.AConsensusAddress = string(dAtA[iNdEx:postIndex]) 4237 iNdEx = postIndex 4238 case 38: 4239 if wireType != 2 { 4240 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) 4241 } 4242 var msglen int 4243 for shift := uint(0); ; shift += 7 { 4244 if shift >= 64 { 4245 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4246 } 4247 if iNdEx >= l { 4248 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4249 } 4250 b := dAtA[iNdEx] 4251 iNdEx++ 4252 msglen |= int(b&0x7F) << shift 4253 if b < 0x80 { 4254 break 4255 } 4256 } 4257 if msglen < 0 { 4258 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4259 } 4260 postIndex := iNdEx + msglen 4261 if postIndex < 0 { 4262 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4263 } 4264 if postIndex > l { 4265 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4266 } 4267 x.Coins = append(x.Coins, &v1beta1.Coin{}) 4268 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Coins[len(x.Coins)-1]); err != nil { 4269 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4270 } 4271 iNdEx = postIndex 4272 default: 4273 iNdEx = preIndex 4274 skippy, err := runtime.Skip(dAtA[iNdEx:]) 4275 if err != nil { 4276 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4277 } 4278 if (skippy < 0) || (iNdEx+skippy) < 0 { 4279 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4280 } 4281 if (iNdEx + skippy) > l { 4282 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4283 } 4284 if !options.DiscardUnknown { 4285 x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4286 } 4287 iNdEx += skippy 4288 } 4289 } 4290 4291 if iNdEx > l { 4292 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4293 } 4294 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil 4295 } 4296 return &protoiface.Methods{ 4297 NoUnkeyedLiterals: struct{}{}, 4298 Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, 4299 Size: size, 4300 Marshal: marshal, 4301 Unmarshal: unmarshal, 4302 Merge: nil, 4303 CheckInitialized: nil, 4304 } 4305 } 4306 4307 var ( 4308 md_EchoResponse protoreflect.MessageDescriptor 4309 fd_EchoResponse_request protoreflect.FieldDescriptor 4310 ) 4311 4312 func init() { 4313 file_testpb_query_proto_init() 4314 md_EchoResponse = File_testpb_query_proto.Messages().ByName("EchoResponse") 4315 fd_EchoResponse_request = md_EchoResponse.Fields().ByName("request") 4316 } 4317 4318 var _ protoreflect.Message = (*fastReflection_EchoResponse)(nil) 4319 4320 type fastReflection_EchoResponse EchoResponse 4321 4322 func (x *EchoResponse) ProtoReflect() protoreflect.Message { 4323 return (*fastReflection_EchoResponse)(x) 4324 } 4325 4326 func (x *EchoResponse) slowProtoReflect() protoreflect.Message { 4327 mi := &file_testpb_query_proto_msgTypes[2] 4328 if protoimpl.UnsafeEnabled && x != nil { 4329 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 4330 if ms.LoadMessageInfo() == nil { 4331 ms.StoreMessageInfo(mi) 4332 } 4333 return ms 4334 } 4335 return mi.MessageOf(x) 4336 } 4337 4338 var _fastReflection_EchoResponse_messageType fastReflection_EchoResponse_messageType 4339 var _ protoreflect.MessageType = fastReflection_EchoResponse_messageType{} 4340 4341 type fastReflection_EchoResponse_messageType struct{} 4342 4343 func (x fastReflection_EchoResponse_messageType) Zero() protoreflect.Message { 4344 return (*fastReflection_EchoResponse)(nil) 4345 } 4346 func (x fastReflection_EchoResponse_messageType) New() protoreflect.Message { 4347 return new(fastReflection_EchoResponse) 4348 } 4349 func (x fastReflection_EchoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { 4350 return md_EchoResponse 4351 } 4352 4353 // Descriptor returns message descriptor, which contains only the protobuf 4354 // type information for the message. 4355 func (x *fastReflection_EchoResponse) Descriptor() protoreflect.MessageDescriptor { 4356 return md_EchoResponse 4357 } 4358 4359 // Type returns the message type, which encapsulates both Go and protobuf 4360 // type information. If the Go type information is not needed, 4361 // it is recommended that the message descriptor be used instead. 4362 func (x *fastReflection_EchoResponse) Type() protoreflect.MessageType { 4363 return _fastReflection_EchoResponse_messageType 4364 } 4365 4366 // New returns a newly allocated and mutable empty message. 4367 func (x *fastReflection_EchoResponse) New() protoreflect.Message { 4368 return new(fastReflection_EchoResponse) 4369 } 4370 4371 // Interface unwraps the message reflection interface and 4372 // returns the underlying ProtoMessage interface. 4373 func (x *fastReflection_EchoResponse) Interface() protoreflect.ProtoMessage { 4374 return (*EchoResponse)(x) 4375 } 4376 4377 // Range iterates over every populated field in an undefined order, 4378 // calling f for each field descriptor and value encountered. 4379 // Range returns immediately if f returns false. 4380 // While iterating, mutating operations may only be performed 4381 // on the current field descriptor. 4382 func (x *fastReflection_EchoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 4383 if x.Request != nil { 4384 value := protoreflect.ValueOfMessage(x.Request.ProtoReflect()) 4385 if !f(fd_EchoResponse_request, value) { 4386 return 4387 } 4388 } 4389 } 4390 4391 // Has reports whether a field is populated. 4392 // 4393 // Some fields have the property of nullability where it is possible to 4394 // distinguish between the default value of a field and whether the field 4395 // was explicitly populated with the default value. Singular message fields, 4396 // member fields of a oneof, and proto2 scalar fields are nullable. Such 4397 // fields are populated only if explicitly set. 4398 // 4399 // In other cases (aside from the nullable cases above), 4400 // a proto3 scalar field is populated if it contains a non-zero value, and 4401 // a repeated field is populated if it is non-empty. 4402 func (x *fastReflection_EchoResponse) Has(fd protoreflect.FieldDescriptor) bool { 4403 switch fd.FullName() { 4404 case "testpb.EchoResponse.request": 4405 return x.Request != nil 4406 default: 4407 if fd.IsExtension() { 4408 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) 4409 } 4410 panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) 4411 } 4412 } 4413 4414 // Clear clears the field such that a subsequent Has call reports false. 4415 // 4416 // Clearing an extension field clears both the extension type and value 4417 // associated with the given field number. 4418 // 4419 // Clear is a mutating operation and unsafe for concurrent use. 4420 func (x *fastReflection_EchoResponse) Clear(fd protoreflect.FieldDescriptor) { 4421 switch fd.FullName() { 4422 case "testpb.EchoResponse.request": 4423 x.Request = nil 4424 default: 4425 if fd.IsExtension() { 4426 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) 4427 } 4428 panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) 4429 } 4430 } 4431 4432 // Get retrieves the value for a field. 4433 // 4434 // For unpopulated scalars, it returns the default value, where 4435 // the default value of a bytes scalar is guaranteed to be a copy. 4436 // For unpopulated composite types, it returns an empty, read-only view 4437 // of the value; to obtain a mutable reference, use Mutable. 4438 func (x *fastReflection_EchoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { 4439 switch descriptor.FullName() { 4440 case "testpb.EchoResponse.request": 4441 value := x.Request 4442 return protoreflect.ValueOfMessage(value.ProtoReflect()) 4443 default: 4444 if descriptor.IsExtension() { 4445 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) 4446 } 4447 panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", descriptor.FullName())) 4448 } 4449 } 4450 4451 // Set stores the value for a field. 4452 // 4453 // For a field belonging to a oneof, it implicitly clears any other field 4454 // that may be currently set within the same oneof. 4455 // For extension fields, it implicitly stores the provided ExtensionType. 4456 // When setting a composite type, it is unspecified whether the stored value 4457 // aliases the source's memory in any way. If the composite value is an 4458 // empty, read-only value, then it panics. 4459 // 4460 // Set is a mutating operation and unsafe for concurrent use. 4461 func (x *fastReflection_EchoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { 4462 switch fd.FullName() { 4463 case "testpb.EchoResponse.request": 4464 x.Request = value.Message().Interface().(*EchoRequest) 4465 default: 4466 if fd.IsExtension() { 4467 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) 4468 } 4469 panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) 4470 } 4471 } 4472 4473 // Mutable returns a mutable reference to a composite type. 4474 // 4475 // If the field is unpopulated, it may allocate a composite value. 4476 // For a field belonging to a oneof, it implicitly clears any other field 4477 // that may be currently set within the same oneof. 4478 // For extension fields, it implicitly stores the provided ExtensionType 4479 // if not already stored. 4480 // It panics if the field does not contain a composite type. 4481 // 4482 // Mutable is a mutating operation and unsafe for concurrent use. 4483 func (x *fastReflection_EchoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { 4484 switch fd.FullName() { 4485 case "testpb.EchoResponse.request": 4486 if x.Request == nil { 4487 x.Request = new(EchoRequest) 4488 } 4489 return protoreflect.ValueOfMessage(x.Request.ProtoReflect()) 4490 default: 4491 if fd.IsExtension() { 4492 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) 4493 } 4494 panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) 4495 } 4496 } 4497 4498 // NewField returns a new value that is assignable to the field 4499 // for the given descriptor. For scalars, this returns the default value. 4500 // For lists, maps, and messages, this returns a new, empty, mutable value. 4501 func (x *fastReflection_EchoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { 4502 switch fd.FullName() { 4503 case "testpb.EchoResponse.request": 4504 m := new(EchoRequest) 4505 return protoreflect.ValueOfMessage(m.ProtoReflect()) 4506 default: 4507 if fd.IsExtension() { 4508 panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) 4509 } 4510 panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) 4511 } 4512 } 4513 4514 // WhichOneof reports which field within the oneof is populated, 4515 // returning nil if none are populated. 4516 // It panics if the oneof descriptor does not belong to this message. 4517 func (x *fastReflection_EchoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { 4518 switch d.FullName() { 4519 default: 4520 panic(fmt.Errorf("%s is not a oneof field in testpb.EchoResponse", d.FullName())) 4521 } 4522 panic("unreachable") 4523 } 4524 4525 // GetUnknown retrieves the entire list of unknown fields. 4526 // The caller may only mutate the contents of the RawFields 4527 // if the mutated bytes are stored back into the message with SetUnknown. 4528 func (x *fastReflection_EchoResponse) GetUnknown() protoreflect.RawFields { 4529 return x.unknownFields 4530 } 4531 4532 // SetUnknown stores an entire list of unknown fields. 4533 // The raw fields must be syntactically valid according to the wire format. 4534 // An implementation may panic if this is not the case. 4535 // Once stored, the caller must not mutate the content of the RawFields. 4536 // An empty RawFields may be passed to clear the fields. 4537 // 4538 // SetUnknown is a mutating operation and unsafe for concurrent use. 4539 func (x *fastReflection_EchoResponse) SetUnknown(fields protoreflect.RawFields) { 4540 x.unknownFields = fields 4541 } 4542 4543 // IsValid reports whether the message is valid. 4544 // 4545 // An invalid message is an empty, read-only value. 4546 // 4547 // An invalid message often corresponds to a nil pointer of the concrete 4548 // message type, but the details are implementation dependent. 4549 // Validity is not part of the protobuf data model, and may not 4550 // be preserved in marshaling or other operations. 4551 func (x *fastReflection_EchoResponse) IsValid() bool { 4552 return x != nil 4553 } 4554 4555 // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. 4556 // This method may return nil. 4557 // 4558 // The returned methods type is identical to 4559 // "google.golang.org/protobuf/runtime/protoiface".Methods. 4560 // Consult the protoiface package documentation for details. 4561 func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { 4562 size := func(input protoiface.SizeInput) protoiface.SizeOutput { 4563 x := input.Message.Interface().(*EchoResponse) 4564 if x == nil { 4565 return protoiface.SizeOutput{ 4566 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 4567 Size: 0, 4568 } 4569 } 4570 options := runtime.SizeInputToOptions(input) 4571 _ = options 4572 var n int 4573 var l int 4574 _ = l 4575 if x.Request != nil { 4576 l = options.Size(x.Request) 4577 n += 1 + l + runtime.Sov(uint64(l)) 4578 } 4579 if x.unknownFields != nil { 4580 n += len(x.unknownFields) 4581 } 4582 return protoiface.SizeOutput{ 4583 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 4584 Size: n, 4585 } 4586 } 4587 4588 marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { 4589 x := input.Message.Interface().(*EchoResponse) 4590 if x == nil { 4591 return protoiface.MarshalOutput{ 4592 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 4593 Buf: input.Buf, 4594 }, nil 4595 } 4596 options := runtime.MarshalInputToOptions(input) 4597 _ = options 4598 size := options.Size(x) 4599 dAtA := make([]byte, size) 4600 i := len(dAtA) 4601 _ = i 4602 var l int 4603 _ = l 4604 if x.unknownFields != nil { 4605 i -= len(x.unknownFields) 4606 copy(dAtA[i:], x.unknownFields) 4607 } 4608 if x.Request != nil { 4609 encoded, err := options.Marshal(x.Request) 4610 if err != nil { 4611 return protoiface.MarshalOutput{ 4612 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 4613 Buf: input.Buf, 4614 }, err 4615 } 4616 i -= len(encoded) 4617 copy(dAtA[i:], encoded) 4618 i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) 4619 i-- 4620 dAtA[i] = 0xa 4621 } 4622 if input.Buf != nil { 4623 input.Buf = append(input.Buf, dAtA...) 4624 } else { 4625 input.Buf = dAtA 4626 } 4627 return protoiface.MarshalOutput{ 4628 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 4629 Buf: input.Buf, 4630 }, nil 4631 } 4632 unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { 4633 x := input.Message.Interface().(*EchoResponse) 4634 if x == nil { 4635 return protoiface.UnmarshalOutput{ 4636 NoUnkeyedLiterals: input.NoUnkeyedLiterals, 4637 Flags: input.Flags, 4638 }, nil 4639 } 4640 options := runtime.UnmarshalInputToOptions(input) 4641 _ = options 4642 dAtA := input.Buf 4643 l := len(dAtA) 4644 iNdEx := 0 4645 for iNdEx < l { 4646 preIndex := iNdEx 4647 var wire uint64 4648 for shift := uint(0); ; shift += 7 { 4649 if shift >= 64 { 4650 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4651 } 4652 if iNdEx >= l { 4653 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4654 } 4655 b := dAtA[iNdEx] 4656 iNdEx++ 4657 wire |= uint64(b&0x7F) << shift 4658 if b < 0x80 { 4659 break 4660 } 4661 } 4662 fieldNum := int32(wire >> 3) 4663 wireType := int(wire & 0x7) 4664 if wireType == 4 { 4665 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoResponse: wiretype end group for non-group") 4666 } 4667 if fieldNum <= 0 { 4668 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EchoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4669 } 4670 switch fieldNum { 4671 case 1: 4672 if wireType != 2 { 4673 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) 4674 } 4675 var msglen int 4676 for shift := uint(0); ; shift += 7 { 4677 if shift >= 64 { 4678 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow 4679 } 4680 if iNdEx >= l { 4681 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4682 } 4683 b := dAtA[iNdEx] 4684 iNdEx++ 4685 msglen |= int(b&0x7F) << shift 4686 if b < 0x80 { 4687 break 4688 } 4689 } 4690 if msglen < 0 { 4691 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4692 } 4693 postIndex := iNdEx + msglen 4694 if postIndex < 0 { 4695 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4696 } 4697 if postIndex > l { 4698 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4699 } 4700 if x.Request == nil { 4701 x.Request = &EchoRequest{} 4702 } 4703 if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Request); err != nil { 4704 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4705 } 4706 iNdEx = postIndex 4707 default: 4708 iNdEx = preIndex 4709 skippy, err := runtime.Skip(dAtA[iNdEx:]) 4710 if err != nil { 4711 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err 4712 } 4713 if (skippy < 0) || (iNdEx+skippy) < 0 { 4714 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength 4715 } 4716 if (iNdEx + skippy) > l { 4717 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4718 } 4719 if !options.DiscardUnknown { 4720 x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4721 } 4722 iNdEx += skippy 4723 } 4724 } 4725 4726 if iNdEx > l { 4727 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF 4728 } 4729 return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil 4730 } 4731 return &protoiface.Methods{ 4732 NoUnkeyedLiterals: struct{}{}, 4733 Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, 4734 Size: size, 4735 Marshal: marshal, 4736 Unmarshal: unmarshal, 4737 Merge: nil, 4738 CheckInitialized: nil, 4739 } 4740 } 4741 4742 // Code generated by protoc-gen-go. DO NOT EDIT. 4743 // versions: 4744 // protoc-gen-go v1.27.0 4745 // protoc (unknown) 4746 // source: testpb/query.proto 4747 4748 const ( 4749 // Verify that this generated code is sufficiently up-to-date. 4750 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 4751 // Verify that runtime/protoimpl is sufficiently up-to-date. 4752 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 4753 ) 4754 4755 type Enum int32 4756 4757 const ( 4758 Enum_ENUM_UNSPECIFIED Enum = 0 4759 Enum_ENUM_ONE Enum = 1 4760 Enum_ENUM_TWO Enum = 2 4761 Enum_ENUM_FIVE Enum = 5 4762 Enum_ENUM_NEG_THREE Enum = -3 4763 ) 4764 4765 // Enum value maps for Enum. 4766 var ( 4767 Enum_name = map[int32]string{ 4768 0: "ENUM_UNSPECIFIED", 4769 1: "ENUM_ONE", 4770 2: "ENUM_TWO", 4771 5: "ENUM_FIVE", 4772 -3: "ENUM_NEG_THREE", 4773 } 4774 Enum_value = map[string]int32{ 4775 "ENUM_UNSPECIFIED": 0, 4776 "ENUM_ONE": 1, 4777 "ENUM_TWO": 2, 4778 "ENUM_FIVE": 5, 4779 "ENUM_NEG_THREE": -3, 4780 } 4781 ) 4782 4783 func (x Enum) Enum() *Enum { 4784 p := new(Enum) 4785 *p = x 4786 return p 4787 } 4788 4789 func (x Enum) String() string { 4790 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 4791 } 4792 4793 func (Enum) Descriptor() protoreflect.EnumDescriptor { 4794 return file_testpb_query_proto_enumTypes[0].Descriptor() 4795 } 4796 4797 func (Enum) Type() protoreflect.EnumType { 4798 return &file_testpb_query_proto_enumTypes[0] 4799 } 4800 4801 func (x Enum) Number() protoreflect.EnumNumber { 4802 return protoreflect.EnumNumber(x) 4803 } 4804 4805 // Deprecated: Use Enum.Descriptor instead. 4806 func (Enum) EnumDescriptor() ([]byte, []int) { 4807 return file_testpb_query_proto_rawDescGZIP(), []int{0} 4808 } 4809 4810 type AMessage struct { 4811 state protoimpl.MessageState 4812 sizeCache protoimpl.SizeCache 4813 unknownFields protoimpl.UnknownFields 4814 4815 Bar string `protobuf:"bytes,1,opt,name=bar,proto3" json:"bar,omitempty"` 4816 Baz int32 `protobuf:"varint,2,opt,name=baz,proto3" json:"baz,omitempty"` 4817 } 4818 4819 func (x *AMessage) Reset() { 4820 *x = AMessage{} 4821 if protoimpl.UnsafeEnabled { 4822 mi := &file_testpb_query_proto_msgTypes[0] 4823 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 4824 ms.StoreMessageInfo(mi) 4825 } 4826 } 4827 4828 func (x *AMessage) String() string { 4829 return protoimpl.X.MessageStringOf(x) 4830 } 4831 4832 func (*AMessage) ProtoMessage() {} 4833 4834 // Deprecated: Use AMessage.ProtoReflect.Descriptor instead. 4835 func (*AMessage) Descriptor() ([]byte, []int) { 4836 return file_testpb_query_proto_rawDescGZIP(), []int{0} 4837 } 4838 4839 func (x *AMessage) GetBar() string { 4840 if x != nil { 4841 return x.Bar 4842 } 4843 return "" 4844 } 4845 4846 func (x *AMessage) GetBaz() int32 { 4847 if x != nil { 4848 return x.Baz 4849 } 4850 return 0 4851 } 4852 4853 type EchoRequest struct { 4854 state protoimpl.MessageState 4855 sizeCache protoimpl.SizeCache 4856 unknownFields protoimpl.UnknownFields 4857 4858 // u32 is an uint32 4859 U32 uint32 `protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty"` 4860 U64 uint64 `protobuf:"varint,2,opt,name=u64,proto3" json:"u64,omitempty"` 4861 Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` 4862 Bz []byte `protobuf:"bytes,4,opt,name=bz,proto3" json:"bz,omitempty"` 4863 Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 4864 Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` 4865 I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` 4866 I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` 4867 ABool bool `protobuf:"varint,15,opt,name=a_bool,json=aBool,proto3" json:"a_bool,omitempty"` 4868 AnEnum Enum `protobuf:"varint,16,opt,name=an_enum,json=anEnum,proto3,enum=testpb.Enum" json:"an_enum,omitempty"` 4869 AMessage *AMessage `protobuf:"bytes,17,opt,name=a_message,json=aMessage,proto3" json:"a_message,omitempty"` 4870 ACoin *v1beta1.Coin `protobuf:"bytes,18,opt,name=a_coin,json=aCoin,proto3" json:"a_coin,omitempty"` 4871 AnAddress string `protobuf:"bytes,19,opt,name=an_address,json=anAddress,proto3" json:"an_address,omitempty"` 4872 Page *v1beta11.PageRequest `protobuf:"bytes,20,opt,name=page,proto3" json:"page,omitempty"` 4873 Bools []bool `protobuf:"varint,21,rep,packed,name=bools,proto3" json:"bools,omitempty"` 4874 Uints []uint32 `protobuf:"varint,22,rep,packed,name=uints,proto3" json:"uints,omitempty"` 4875 Strings []string `protobuf:"bytes,23,rep,name=strings,proto3" json:"strings,omitempty"` 4876 Enums []Enum `protobuf:"varint,24,rep,packed,name=enums,proto3,enum=testpb.Enum" json:"enums,omitempty"` 4877 Durations []*durationpb.Duration `protobuf:"bytes,25,rep,name=durations,proto3" json:"durations,omitempty"` 4878 SomeMessages []*AMessage `protobuf:"bytes,26,rep,name=some_messages,json=someMessages,proto3" json:"some_messages,omitempty"` 4879 Positional1 int32 `protobuf:"varint,27,opt,name=positional1,proto3" json:"positional1,omitempty"` 4880 Positional2 string `protobuf:"bytes,28,opt,name=positional2,proto3" json:"positional2,omitempty"` 4881 Positional3Varargs []*v1beta1.Coin `protobuf:"bytes,29,rep,name=positional3_varargs,json=positional3Varargs,proto3" json:"positional3_varargs,omitempty"` 4882 DeprecatedField string `protobuf:"bytes,30,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"` 4883 ShorthandDeprecatedField string `protobuf:"bytes,31,opt,name=shorthand_deprecated_field,json=shorthandDeprecatedField,proto3" json:"shorthand_deprecated_field,omitempty"` 4884 HiddenBool bool `protobuf:"varint,32,opt,name=hidden_bool,json=hiddenBool,proto3" json:"hidden_bool,omitempty"` 4885 MapStringString map[string]string `protobuf:"bytes,33,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 4886 MapStringUint32 map[string]uint32 `protobuf:"bytes,34,rep,name=map_string_uint32,json=mapStringUint32,proto3" json:"map_string_uint32,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 4887 MapStringCoin map[string]*v1beta1.Coin `protobuf:"bytes,35,rep,name=map_string_coin,json=mapStringCoin,proto3" json:"map_string_coin,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 4888 AValidatorAddress string `protobuf:"bytes,36,opt,name=a_validator_address,json=aValidatorAddress,proto3" json:"a_validator_address,omitempty"` 4889 AConsensusAddress string `protobuf:"bytes,37,opt,name=a_consensus_address,json=aConsensusAddress,proto3" json:"a_consensus_address,omitempty"` 4890 Coins []*v1beta1.Coin `protobuf:"bytes,38,rep,name=coins,proto3" json:"coins,omitempty"` 4891 } 4892 4893 func (x *EchoRequest) Reset() { 4894 *x = EchoRequest{} 4895 if protoimpl.UnsafeEnabled { 4896 mi := &file_testpb_query_proto_msgTypes[1] 4897 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 4898 ms.StoreMessageInfo(mi) 4899 } 4900 } 4901 4902 func (x *EchoRequest) String() string { 4903 return protoimpl.X.MessageStringOf(x) 4904 } 4905 4906 func (*EchoRequest) ProtoMessage() {} 4907 4908 // Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead. 4909 func (*EchoRequest) Descriptor() ([]byte, []int) { 4910 return file_testpb_query_proto_rawDescGZIP(), []int{1} 4911 } 4912 4913 func (x *EchoRequest) GetU32() uint32 { 4914 if x != nil { 4915 return x.U32 4916 } 4917 return 0 4918 } 4919 4920 func (x *EchoRequest) GetU64() uint64 { 4921 if x != nil { 4922 return x.U64 4923 } 4924 return 0 4925 } 4926 4927 func (x *EchoRequest) GetStr() string { 4928 if x != nil { 4929 return x.Str 4930 } 4931 return "" 4932 } 4933 4934 func (x *EchoRequest) GetBz() []byte { 4935 if x != nil { 4936 return x.Bz 4937 } 4938 return nil 4939 } 4940 4941 func (x *EchoRequest) GetTimestamp() *timestamppb.Timestamp { 4942 if x != nil { 4943 return x.Timestamp 4944 } 4945 return nil 4946 } 4947 4948 func (x *EchoRequest) GetDuration() *durationpb.Duration { 4949 if x != nil { 4950 return x.Duration 4951 } 4952 return nil 4953 } 4954 4955 func (x *EchoRequest) GetI32() int32 { 4956 if x != nil { 4957 return x.I32 4958 } 4959 return 0 4960 } 4961 4962 func (x *EchoRequest) GetI64() int64 { 4963 if x != nil { 4964 return x.I64 4965 } 4966 return 0 4967 } 4968 4969 func (x *EchoRequest) GetABool() bool { 4970 if x != nil { 4971 return x.ABool 4972 } 4973 return false 4974 } 4975 4976 func (x *EchoRequest) GetAnEnum() Enum { 4977 if x != nil { 4978 return x.AnEnum 4979 } 4980 return Enum_ENUM_UNSPECIFIED 4981 } 4982 4983 func (x *EchoRequest) GetAMessage() *AMessage { 4984 if x != nil { 4985 return x.AMessage 4986 } 4987 return nil 4988 } 4989 4990 func (x *EchoRequest) GetACoin() *v1beta1.Coin { 4991 if x != nil { 4992 return x.ACoin 4993 } 4994 return nil 4995 } 4996 4997 func (x *EchoRequest) GetAnAddress() string { 4998 if x != nil { 4999 return x.AnAddress 5000 } 5001 return "" 5002 } 5003 5004 func (x *EchoRequest) GetPage() *v1beta11.PageRequest { 5005 if x != nil { 5006 return x.Page 5007 } 5008 return nil 5009 } 5010 5011 func (x *EchoRequest) GetBools() []bool { 5012 if x != nil { 5013 return x.Bools 5014 } 5015 return nil 5016 } 5017 5018 func (x *EchoRequest) GetUints() []uint32 { 5019 if x != nil { 5020 return x.Uints 5021 } 5022 return nil 5023 } 5024 5025 func (x *EchoRequest) GetStrings() []string { 5026 if x != nil { 5027 return x.Strings 5028 } 5029 return nil 5030 } 5031 5032 func (x *EchoRequest) GetEnums() []Enum { 5033 if x != nil { 5034 return x.Enums 5035 } 5036 return nil 5037 } 5038 5039 func (x *EchoRequest) GetDurations() []*durationpb.Duration { 5040 if x != nil { 5041 return x.Durations 5042 } 5043 return nil 5044 } 5045 5046 func (x *EchoRequest) GetSomeMessages() []*AMessage { 5047 if x != nil { 5048 return x.SomeMessages 5049 } 5050 return nil 5051 } 5052 5053 func (x *EchoRequest) GetPositional1() int32 { 5054 if x != nil { 5055 return x.Positional1 5056 } 5057 return 0 5058 } 5059 5060 func (x *EchoRequest) GetPositional2() string { 5061 if x != nil { 5062 return x.Positional2 5063 } 5064 return "" 5065 } 5066 5067 func (x *EchoRequest) GetPositional3Varargs() []*v1beta1.Coin { 5068 if x != nil { 5069 return x.Positional3Varargs 5070 } 5071 return nil 5072 } 5073 5074 func (x *EchoRequest) GetDeprecatedField() string { 5075 if x != nil { 5076 return x.DeprecatedField 5077 } 5078 return "" 5079 } 5080 5081 func (x *EchoRequest) GetShorthandDeprecatedField() string { 5082 if x != nil { 5083 return x.ShorthandDeprecatedField 5084 } 5085 return "" 5086 } 5087 5088 func (x *EchoRequest) GetHiddenBool() bool { 5089 if x != nil { 5090 return x.HiddenBool 5091 } 5092 return false 5093 } 5094 5095 func (x *EchoRequest) GetMapStringString() map[string]string { 5096 if x != nil { 5097 return x.MapStringString 5098 } 5099 return nil 5100 } 5101 5102 func (x *EchoRequest) GetMapStringUint32() map[string]uint32 { 5103 if x != nil { 5104 return x.MapStringUint32 5105 } 5106 return nil 5107 } 5108 5109 func (x *EchoRequest) GetMapStringCoin() map[string]*v1beta1.Coin { 5110 if x != nil { 5111 return x.MapStringCoin 5112 } 5113 return nil 5114 } 5115 5116 func (x *EchoRequest) GetAValidatorAddress() string { 5117 if x != nil { 5118 return x.AValidatorAddress 5119 } 5120 return "" 5121 } 5122 5123 func (x *EchoRequest) GetAConsensusAddress() string { 5124 if x != nil { 5125 return x.AConsensusAddress 5126 } 5127 return "" 5128 } 5129 5130 func (x *EchoRequest) GetCoins() []*v1beta1.Coin { 5131 if x != nil { 5132 return x.Coins 5133 } 5134 return nil 5135 } 5136 5137 type EchoResponse struct { 5138 state protoimpl.MessageState 5139 sizeCache protoimpl.SizeCache 5140 unknownFields protoimpl.UnknownFields 5141 5142 Request *EchoRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` 5143 } 5144 5145 func (x *EchoResponse) Reset() { 5146 *x = EchoResponse{} 5147 if protoimpl.UnsafeEnabled { 5148 mi := &file_testpb_query_proto_msgTypes[2] 5149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 5150 ms.StoreMessageInfo(mi) 5151 } 5152 } 5153 5154 func (x *EchoResponse) String() string { 5155 return protoimpl.X.MessageStringOf(x) 5156 } 5157 5158 func (*EchoResponse) ProtoMessage() {} 5159 5160 // Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead. 5161 func (*EchoResponse) Descriptor() ([]byte, []int) { 5162 return file_testpb_query_proto_rawDescGZIP(), []int{2} 5163 } 5164 5165 func (x *EchoResponse) GetRequest() *EchoRequest { 5166 if x != nil { 5167 return x.Request 5168 } 5169 return nil 5170 } 5171 5172 var File_testpb_query_proto protoreflect.FileDescriptor 5173 5174 var file_testpb_query_proto_rawDesc = []byte{ 5175 0x0a, 0x12, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 5176 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 5177 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 5178 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 5179 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 5180 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 5181 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 5182 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 5183 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 5184 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 5185 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 5186 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 5187 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x08, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 5188 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 5189 0x61, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 5190 0x03, 0x62, 0x61, 0x7a, 0x22, 0xa8, 0x0d, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 5191 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 5192 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, 0x20, 5193 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 5194 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x7a, 5195 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x62, 0x7a, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 5196 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 5197 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 5198 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 5199 0x74, 0x61, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 5200 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 5201 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 5202 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x69, 5203 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, 0x0a, 5204 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 5205 0x15, 0x0a, 0x06, 0x61, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 5206 0x05, 0x61, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x25, 0x0a, 0x07, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 5207 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 5208 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x2d, 0x0a, 5209 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 5210 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 5211 0x67, 0x65, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x06, 5212 0x61, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 5213 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 5214 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x61, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x37, 5215 0x0a, 0x0a, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, 0x01, 5216 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 5217 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x6e, 5218 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 5219 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 5220 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 5221 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 5222 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x15, 0x20, 0x03, 5223 0x28, 0x08, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x69, 0x6e, 5224 0x74, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, 0x12, 5225 0x18, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x09, 5226 0x52, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, 0x75, 5227 0x6d, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 5228 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x37, 0x0a, 5229 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, 5230 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 5231 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x75, 0x72, 5232 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x0d, 0x73, 0x6f, 0x6d, 0x65, 0x5f, 0x6d, 5233 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 5234 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 5235 0x0c, 0x73, 0x6f, 0x6d, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x20, 0x0a, 5236 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x18, 0x1b, 0x20, 0x01, 5237 0x28, 0x05, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x12, 5238 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x18, 0x1c, 5239 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 5240 0x32, 0x12, 0x4a, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 5241 0x5f, 0x76, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 5242 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 5243 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 5244 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 0x56, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x12, 0x29, 0x0a, 5245 0x10, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 5246 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 5247 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x68, 0x6f, 0x72, 5248 0x74, 0x68, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 5249 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x73, 0x68, 5250 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 5251 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 5252 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x69, 0x64, 5253 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x54, 0x0a, 0x11, 0x6d, 0x61, 0x70, 0x5f, 0x73, 5254 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x21, 0x20, 0x03, 5255 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 5256 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 5257 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, 5258 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, 5259 0x11, 0x6d, 0x61, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x69, 0x6e, 0x74, 5260 0x33, 0x32, 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 5261 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, 5262 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 5263 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x69, 0x6e, 5264 0x74, 0x33, 0x32, 0x12, 0x4e, 0x0a, 0x0f, 0x6d, 0x61, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 5265 0x67, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 5266 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 5267 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x69, 0x6e, 0x45, 5268 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 5269 0x6f, 0x69, 0x6e, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 5270 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, 5271 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 5272 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 5273 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 5274 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 5275 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x25, 0x20, 5276 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 5277 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 5278 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 5279 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x63, 0x6f, 0x69, 5280 0x6e, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 5281 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 5282 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x1a, 0x42, 0x0a, 0x14, 0x4d, 0x61, 5283 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 5284 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 5285 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 5286 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42, 5287 0x0a, 0x14, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x69, 0x6e, 0x74, 0x33, 5288 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 5289 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 5290 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 5291 0x38, 0x01, 0x1a, 0x5b, 0x0a, 0x12, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 5292 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 5293 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 5294 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 5295 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 5296 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 5297 0x3d, 0x0a, 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 5298 0x2d, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 5299 0x32, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 5300 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2a, 0x64, 5301 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, 5302 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 5303 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4e, 5304 0x55, 0x4d, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x55, 0x4d, 5305 0x5f, 0x46, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x0e, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 5306 0x4e, 0x45, 0x47, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 5307 0xff, 0xff, 0xff, 0x01, 0x32, 0x3a, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31, 0x0a, 5308 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 5309 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x74, 0x65, 0x73, 5310 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 5311 0x42, 0x88, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, 5312 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 5313 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 5314 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6c, 0x69, 0x65, 5315 0x6e, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 5316 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, 0x65, 5317 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, 0x12, 5318 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 5319 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 5320 0x74, 0x6f, 0x33, 5321 } 5322 5323 var ( 5324 file_testpb_query_proto_rawDescOnce sync.Once 5325 file_testpb_query_proto_rawDescData = file_testpb_query_proto_rawDesc 5326 ) 5327 5328 func file_testpb_query_proto_rawDescGZIP() []byte { 5329 file_testpb_query_proto_rawDescOnce.Do(func() { 5330 file_testpb_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_query_proto_rawDescData) 5331 }) 5332 return file_testpb_query_proto_rawDescData 5333 } 5334 5335 var file_testpb_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 5336 var file_testpb_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 5337 var file_testpb_query_proto_goTypes = []interface{}{ 5338 (Enum)(0), // 0: testpb.Enum 5339 (*AMessage)(nil), // 1: testpb.AMessage 5340 (*EchoRequest)(nil), // 2: testpb.EchoRequest 5341 (*EchoResponse)(nil), // 3: testpb.EchoResponse 5342 nil, // 4: testpb.EchoRequest.MapStringStringEntry 5343 nil, // 5: testpb.EchoRequest.MapStringUint32Entry 5344 nil, // 6: testpb.EchoRequest.MapStringCoinEntry 5345 (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp 5346 (*durationpb.Duration)(nil), // 8: google.protobuf.Duration 5347 (*v1beta1.Coin)(nil), // 9: cosmos.base.v1beta1.Coin 5348 (*v1beta11.PageRequest)(nil), // 10: cosmos.base.query.v1beta1.PageRequest 5349 } 5350 var file_testpb_query_proto_depIdxs = []int32{ 5351 7, // 0: testpb.EchoRequest.timestamp:type_name -> google.protobuf.Timestamp 5352 8, // 1: testpb.EchoRequest.duration:type_name -> google.protobuf.Duration 5353 0, // 2: testpb.EchoRequest.an_enum:type_name -> testpb.Enum 5354 1, // 3: testpb.EchoRequest.a_message:type_name -> testpb.AMessage 5355 9, // 4: testpb.EchoRequest.a_coin:type_name -> cosmos.base.v1beta1.Coin 5356 10, // 5: testpb.EchoRequest.page:type_name -> cosmos.base.query.v1beta1.PageRequest 5357 0, // 6: testpb.EchoRequest.enums:type_name -> testpb.Enum 5358 8, // 7: testpb.EchoRequest.durations:type_name -> google.protobuf.Duration 5359 1, // 8: testpb.EchoRequest.some_messages:type_name -> testpb.AMessage 5360 9, // 9: testpb.EchoRequest.positional3_varargs:type_name -> cosmos.base.v1beta1.Coin 5361 4, // 10: testpb.EchoRequest.map_string_string:type_name -> testpb.EchoRequest.MapStringStringEntry 5362 5, // 11: testpb.EchoRequest.map_string_uint32:type_name -> testpb.EchoRequest.MapStringUint32Entry 5363 6, // 12: testpb.EchoRequest.map_string_coin:type_name -> testpb.EchoRequest.MapStringCoinEntry 5364 9, // 13: testpb.EchoRequest.coins:type_name -> cosmos.base.v1beta1.Coin 5365 2, // 14: testpb.EchoResponse.request:type_name -> testpb.EchoRequest 5366 9, // 15: testpb.EchoRequest.MapStringCoinEntry.value:type_name -> cosmos.base.v1beta1.Coin 5367 2, // 16: testpb.Query.Echo:input_type -> testpb.EchoRequest 5368 3, // 17: testpb.Query.Echo:output_type -> testpb.EchoResponse 5369 17, // [17:18] is the sub-list for method output_type 5370 16, // [16:17] is the sub-list for method input_type 5371 16, // [16:16] is the sub-list for extension type_name 5372 16, // [16:16] is the sub-list for extension extendee 5373 0, // [0:16] is the sub-list for field type_name 5374 } 5375 5376 func init() { file_testpb_query_proto_init() } 5377 func file_testpb_query_proto_init() { 5378 if File_testpb_query_proto != nil { 5379 return 5380 } 5381 if !protoimpl.UnsafeEnabled { 5382 file_testpb_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 5383 switch v := v.(*AMessage); i { 5384 case 0: 5385 return &v.state 5386 case 1: 5387 return &v.sizeCache 5388 case 2: 5389 return &v.unknownFields 5390 default: 5391 return nil 5392 } 5393 } 5394 file_testpb_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 5395 switch v := v.(*EchoRequest); i { 5396 case 0: 5397 return &v.state 5398 case 1: 5399 return &v.sizeCache 5400 case 2: 5401 return &v.unknownFields 5402 default: 5403 return nil 5404 } 5405 } 5406 file_testpb_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 5407 switch v := v.(*EchoResponse); i { 5408 case 0: 5409 return &v.state 5410 case 1: 5411 return &v.sizeCache 5412 case 2: 5413 return &v.unknownFields 5414 default: 5415 return nil 5416 } 5417 } 5418 } 5419 type x struct{} 5420 out := protoimpl.TypeBuilder{ 5421 File: protoimpl.DescBuilder{ 5422 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 5423 RawDescriptor: file_testpb_query_proto_rawDesc, 5424 NumEnums: 1, 5425 NumMessages: 6, 5426 NumExtensions: 0, 5427 NumServices: 1, 5428 }, 5429 GoTypes: file_testpb_query_proto_goTypes, 5430 DependencyIndexes: file_testpb_query_proto_depIdxs, 5431 EnumInfos: file_testpb_query_proto_enumTypes, 5432 MessageInfos: file_testpb_query_proto_msgTypes, 5433 }.Build() 5434 File_testpb_query_proto = out.File 5435 file_testpb_query_proto_rawDesc = nil 5436 file_testpb_query_proto_goTypes = nil 5437 file_testpb_query_proto_depIdxs = nil 5438 }