github.com/Finschia/finschia-sdk@v0.48.1/client/grpc/node/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/base/node/v1beta1/query.proto 3 4 package node 5 6 import ( 7 context "context" 8 fmt "fmt" 9 grpc1 "github.com/gogo/protobuf/grpc" 10 proto "github.com/gogo/protobuf/proto" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 io "io" 16 math "math" 17 math_bits "math/bits" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 // ConfigRequest defines the request structure for the Config gRPC query. 32 type ConfigRequest struct { 33 } 34 35 func (m *ConfigRequest) Reset() { *m = ConfigRequest{} } 36 func (m *ConfigRequest) String() string { return proto.CompactTextString(m) } 37 func (*ConfigRequest) ProtoMessage() {} 38 func (*ConfigRequest) Descriptor() ([]byte, []int) { 39 return fileDescriptor_8324226a07064341, []int{0} 40 } 41 func (m *ConfigRequest) XXX_Unmarshal(b []byte) error { 42 return m.Unmarshal(b) 43 } 44 func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 if deterministic { 46 return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic) 47 } else { 48 b = b[:cap(b)] 49 n, err := m.MarshalToSizedBuffer(b) 50 if err != nil { 51 return nil, err 52 } 53 return b[:n], nil 54 } 55 } 56 func (m *ConfigRequest) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_ConfigRequest.Merge(m, src) 58 } 59 func (m *ConfigRequest) XXX_Size() int { 60 return m.Size() 61 } 62 func (m *ConfigRequest) XXX_DiscardUnknown() { 63 xxx_messageInfo_ConfigRequest.DiscardUnknown(m) 64 } 65 66 var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo 67 68 // ConfigResponse defines the response structure for the Config gRPC query. 69 type ConfigResponse struct { 70 MinimumGasPrice string `protobuf:"bytes,1,opt,name=minimum_gas_price,json=minimumGasPrice,proto3" json:"minimum_gas_price,omitempty"` 71 } 72 73 func (m *ConfigResponse) Reset() { *m = ConfigResponse{} } 74 func (m *ConfigResponse) String() string { return proto.CompactTextString(m) } 75 func (*ConfigResponse) ProtoMessage() {} 76 func (*ConfigResponse) Descriptor() ([]byte, []int) { 77 return fileDescriptor_8324226a07064341, []int{1} 78 } 79 func (m *ConfigResponse) XXX_Unmarshal(b []byte) error { 80 return m.Unmarshal(b) 81 } 82 func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 if deterministic { 84 return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic) 85 } else { 86 b = b[:cap(b)] 87 n, err := m.MarshalToSizedBuffer(b) 88 if err != nil { 89 return nil, err 90 } 91 return b[:n], nil 92 } 93 } 94 func (m *ConfigResponse) XXX_Merge(src proto.Message) { 95 xxx_messageInfo_ConfigResponse.Merge(m, src) 96 } 97 func (m *ConfigResponse) XXX_Size() int { 98 return m.Size() 99 } 100 func (m *ConfigResponse) XXX_DiscardUnknown() { 101 xxx_messageInfo_ConfigResponse.DiscardUnknown(m) 102 } 103 104 var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo 105 106 func (m *ConfigResponse) GetMinimumGasPrice() string { 107 if m != nil { 108 return m.MinimumGasPrice 109 } 110 return "" 111 } 112 113 func init() { 114 proto.RegisterType((*ConfigRequest)(nil), "cosmos.base.node.v1beta1.ConfigRequest") 115 proto.RegisterType((*ConfigResponse)(nil), "cosmos.base.node.v1beta1.ConfigResponse") 116 } 117 118 func init() { 119 proto.RegisterFile("cosmos/base/node/v1beta1/query.proto", fileDescriptor_8324226a07064341) 120 } 121 122 var fileDescriptor_8324226a07064341 = []byte{ 123 // 289 bytes of a gzipped FileDescriptorProto 124 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xbf, 0x4b, 0x03, 0x31, 125 0x1c, 0xc5, 0x1b, 0x87, 0x8a, 0x01, 0x2d, 0xde, 0x54, 0x8a, 0x84, 0x72, 0x08, 0x16, 0xc1, 0x84, 126 0xd3, 0xd5, 0x49, 0x41, 0x07, 0x17, 0xa9, 0x9b, 0x4b, 0xc9, 0xa5, 0xdf, 0xa6, 0xc1, 0x5e, 0xbe, 127 0xd7, 0x4b, 0xae, 0xe0, 0x2a, 0xb8, 0x2b, 0xfe, 0x53, 0x8e, 0x05, 0x17, 0x47, 0xb9, 0xf3, 0x0f, 128 0x91, 0xfb, 0xe1, 0xe0, 0x50, 0xdc, 0xc2, 0xcb, 0xe7, 0xbd, 0xef, 0xe3, 0xd1, 0x43, 0x85, 0x2e, 129 0x41, 0x27, 0x62, 0xe9, 0x40, 0x58, 0x9c, 0x82, 0x58, 0x45, 0x31, 0x78, 0x19, 0x89, 0x65, 0x0e, 130 0xd9, 0x23, 0x4f, 0x33, 0xf4, 0x18, 0xf4, 0x1b, 0x8a, 0x57, 0x14, 0xaf, 0x28, 0xde, 0x52, 0x83, 131 0x03, 0x8d, 0xa8, 0x17, 0x20, 0x64, 0x6a, 0x84, 0xb4, 0x16, 0xbd, 0xf4, 0x06, 0xad, 0x6b, 0x7c, 132 0x61, 0x8f, 0xee, 0x5e, 0xa2, 0x9d, 0x19, 0x3d, 0x86, 0x65, 0x0e, 0xce, 0x87, 0xe7, 0x74, 0xef, 133 0x57, 0x70, 0x29, 0x5a, 0x07, 0xc1, 0x31, 0xdd, 0x4f, 0x8c, 0x35, 0x49, 0x9e, 0x4c, 0xb4, 0x74, 134 0x93, 0x34, 0x33, 0x0a, 0xfa, 0x64, 0x48, 0x46, 0x3b, 0xe3, 0x5e, 0xfb, 0x71, 0x2d, 0xdd, 0x6d, 135 0x25, 0x9f, 0xbe, 0x12, 0xba, 0x7d, 0x07, 0xd9, 0xca, 0x28, 0x08, 0x9e, 0x09, 0xed, 0x36, 0x51, 136 0xc1, 0x11, 0xdf, 0x54, 0x8f, 0xff, 0xb9, 0x3e, 0x18, 0xfd, 0x0f, 0x36, 0xad, 0xc2, 0xd1, 0xd3, 137 0xc7, 0xf7, 0xdb, 0x56, 0x18, 0x0c, 0xc5, 0xc6, 0x7d, 0x54, 0xed, 0xb8, 0xb8, 0x79, 0x2f, 0x18, 138 0x59, 0x17, 0x8c, 0x7c, 0x15, 0x8c, 0xbc, 0x94, 0xac, 0xb3, 0x2e, 0x59, 0xe7, 0xb3, 0x64, 0x9d, 139 0xfb, 0x48, 0x1b, 0x3f, 0xcf, 0x63, 0xae, 0x30, 0x11, 0x57, 0xc6, 0x3a, 0x35, 0x37, 0x52, 0xcc, 140 0xda, 0xc7, 0x89, 0x9b, 0x3e, 0x08, 0xb5, 0x30, 0x60, 0xbd, 0xd0, 0x59, 0xaa, 0xea, 0xec, 0xb8, 141 0x5b, 0xcf, 0x76, 0xf6, 0x13, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x72, 0xa8, 0xd0, 0x96, 0x01, 0x00, 142 0x00, 143 } 144 145 // Reference imports to suppress errors if they are not otherwise used. 146 var _ context.Context 147 var _ grpc.ClientConn 148 149 // This is a compile-time assertion to ensure that this generated file 150 // is compatible with the grpc package it is being compiled against. 151 const _ = grpc.SupportPackageIsVersion4 152 153 // ServiceClient is the client API for Service service. 154 // 155 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 156 type ServiceClient interface { 157 // Config queries for the operator configuration. 158 Config(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error) 159 } 160 161 type serviceClient struct { 162 cc grpc1.ClientConn 163 } 164 165 func NewServiceClient(cc grpc1.ClientConn) ServiceClient { 166 return &serviceClient{cc} 167 } 168 169 func (c *serviceClient) Config(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error) { 170 out := new(ConfigResponse) 171 err := c.cc.Invoke(ctx, "/cosmos.base.node.v1beta1.Service/Config", in, out, opts...) 172 if err != nil { 173 return nil, err 174 } 175 return out, nil 176 } 177 178 // ServiceServer is the server API for Service service. 179 type ServiceServer interface { 180 // Config queries for the operator configuration. 181 Config(context.Context, *ConfigRequest) (*ConfigResponse, error) 182 } 183 184 // UnimplementedServiceServer can be embedded to have forward compatible implementations. 185 type UnimplementedServiceServer struct { 186 } 187 188 func (*UnimplementedServiceServer) Config(ctx context.Context, req *ConfigRequest) (*ConfigResponse, error) { 189 return nil, status.Errorf(codes.Unimplemented, "method Config not implemented") 190 } 191 192 func RegisterServiceServer(s grpc1.Server, srv ServiceServer) { 193 s.RegisterService(&_Service_serviceDesc, srv) 194 } 195 196 func _Service_Config_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 197 in := new(ConfigRequest) 198 if err := dec(in); err != nil { 199 return nil, err 200 } 201 if interceptor == nil { 202 return srv.(ServiceServer).Config(ctx, in) 203 } 204 info := &grpc.UnaryServerInfo{ 205 Server: srv, 206 FullMethod: "/cosmos.base.node.v1beta1.Service/Config", 207 } 208 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 209 return srv.(ServiceServer).Config(ctx, req.(*ConfigRequest)) 210 } 211 return interceptor(ctx, in, info, handler) 212 } 213 214 var _Service_serviceDesc = grpc.ServiceDesc{ 215 ServiceName: "cosmos.base.node.v1beta1.Service", 216 HandlerType: (*ServiceServer)(nil), 217 Methods: []grpc.MethodDesc{ 218 { 219 MethodName: "Config", 220 Handler: _Service_Config_Handler, 221 }, 222 }, 223 Streams: []grpc.StreamDesc{}, 224 Metadata: "cosmos/base/node/v1beta1/query.proto", 225 } 226 227 func (m *ConfigRequest) Marshal() (dAtA []byte, err error) { 228 size := m.Size() 229 dAtA = make([]byte, size) 230 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 231 if err != nil { 232 return nil, err 233 } 234 return dAtA[:n], nil 235 } 236 237 func (m *ConfigRequest) MarshalTo(dAtA []byte) (int, error) { 238 size := m.Size() 239 return m.MarshalToSizedBuffer(dAtA[:size]) 240 } 241 242 func (m *ConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 243 i := len(dAtA) 244 _ = i 245 var l int 246 _ = l 247 return len(dAtA) - i, nil 248 } 249 250 func (m *ConfigResponse) Marshal() (dAtA []byte, err error) { 251 size := m.Size() 252 dAtA = make([]byte, size) 253 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 254 if err != nil { 255 return nil, err 256 } 257 return dAtA[:n], nil 258 } 259 260 func (m *ConfigResponse) MarshalTo(dAtA []byte) (int, error) { 261 size := m.Size() 262 return m.MarshalToSizedBuffer(dAtA[:size]) 263 } 264 265 func (m *ConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 266 i := len(dAtA) 267 _ = i 268 var l int 269 _ = l 270 if len(m.MinimumGasPrice) > 0 { 271 i -= len(m.MinimumGasPrice) 272 copy(dAtA[i:], m.MinimumGasPrice) 273 i = encodeVarintQuery(dAtA, i, uint64(len(m.MinimumGasPrice))) 274 i-- 275 dAtA[i] = 0xa 276 } 277 return len(dAtA) - i, nil 278 } 279 280 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 281 offset -= sovQuery(v) 282 base := offset 283 for v >= 1<<7 { 284 dAtA[offset] = uint8(v&0x7f | 0x80) 285 v >>= 7 286 offset++ 287 } 288 dAtA[offset] = uint8(v) 289 return base 290 } 291 func (m *ConfigRequest) Size() (n int) { 292 if m == nil { 293 return 0 294 } 295 var l int 296 _ = l 297 return n 298 } 299 300 func (m *ConfigResponse) Size() (n int) { 301 if m == nil { 302 return 0 303 } 304 var l int 305 _ = l 306 l = len(m.MinimumGasPrice) 307 if l > 0 { 308 n += 1 + l + sovQuery(uint64(l)) 309 } 310 return n 311 } 312 313 func sovQuery(x uint64) (n int) { 314 return (math_bits.Len64(x|1) + 6) / 7 315 } 316 func sozQuery(x uint64) (n int) { 317 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 318 } 319 func (m *ConfigRequest) Unmarshal(dAtA []byte) error { 320 l := len(dAtA) 321 iNdEx := 0 322 for iNdEx < l { 323 preIndex := iNdEx 324 var wire uint64 325 for shift := uint(0); ; shift += 7 { 326 if shift >= 64 { 327 return ErrIntOverflowQuery 328 } 329 if iNdEx >= l { 330 return io.ErrUnexpectedEOF 331 } 332 b := dAtA[iNdEx] 333 iNdEx++ 334 wire |= uint64(b&0x7F) << shift 335 if b < 0x80 { 336 break 337 } 338 } 339 fieldNum := int32(wire >> 3) 340 wireType := int(wire & 0x7) 341 if wireType == 4 { 342 return fmt.Errorf("proto: ConfigRequest: wiretype end group for non-group") 343 } 344 if fieldNum <= 0 { 345 return fmt.Errorf("proto: ConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) 346 } 347 switch fieldNum { 348 default: 349 iNdEx = preIndex 350 skippy, err := skipQuery(dAtA[iNdEx:]) 351 if err != nil { 352 return err 353 } 354 if (skippy < 0) || (iNdEx+skippy) < 0 { 355 return ErrInvalidLengthQuery 356 } 357 if (iNdEx + skippy) > l { 358 return io.ErrUnexpectedEOF 359 } 360 iNdEx += skippy 361 } 362 } 363 364 if iNdEx > l { 365 return io.ErrUnexpectedEOF 366 } 367 return nil 368 } 369 func (m *ConfigResponse) Unmarshal(dAtA []byte) error { 370 l := len(dAtA) 371 iNdEx := 0 372 for iNdEx < l { 373 preIndex := iNdEx 374 var wire uint64 375 for shift := uint(0); ; shift += 7 { 376 if shift >= 64 { 377 return ErrIntOverflowQuery 378 } 379 if iNdEx >= l { 380 return io.ErrUnexpectedEOF 381 } 382 b := dAtA[iNdEx] 383 iNdEx++ 384 wire |= uint64(b&0x7F) << shift 385 if b < 0x80 { 386 break 387 } 388 } 389 fieldNum := int32(wire >> 3) 390 wireType := int(wire & 0x7) 391 if wireType == 4 { 392 return fmt.Errorf("proto: ConfigResponse: wiretype end group for non-group") 393 } 394 if fieldNum <= 0 { 395 return fmt.Errorf("proto: ConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) 396 } 397 switch fieldNum { 398 case 1: 399 if wireType != 2 { 400 return fmt.Errorf("proto: wrong wireType = %d for field MinimumGasPrice", wireType) 401 } 402 var stringLen uint64 403 for shift := uint(0); ; shift += 7 { 404 if shift >= 64 { 405 return ErrIntOverflowQuery 406 } 407 if iNdEx >= l { 408 return io.ErrUnexpectedEOF 409 } 410 b := dAtA[iNdEx] 411 iNdEx++ 412 stringLen |= uint64(b&0x7F) << shift 413 if b < 0x80 { 414 break 415 } 416 } 417 intStringLen := int(stringLen) 418 if intStringLen < 0 { 419 return ErrInvalidLengthQuery 420 } 421 postIndex := iNdEx + intStringLen 422 if postIndex < 0 { 423 return ErrInvalidLengthQuery 424 } 425 if postIndex > l { 426 return io.ErrUnexpectedEOF 427 } 428 m.MinimumGasPrice = string(dAtA[iNdEx:postIndex]) 429 iNdEx = postIndex 430 default: 431 iNdEx = preIndex 432 skippy, err := skipQuery(dAtA[iNdEx:]) 433 if err != nil { 434 return err 435 } 436 if (skippy < 0) || (iNdEx+skippy) < 0 { 437 return ErrInvalidLengthQuery 438 } 439 if (iNdEx + skippy) > l { 440 return io.ErrUnexpectedEOF 441 } 442 iNdEx += skippy 443 } 444 } 445 446 if iNdEx > l { 447 return io.ErrUnexpectedEOF 448 } 449 return nil 450 } 451 func skipQuery(dAtA []byte) (n int, err error) { 452 l := len(dAtA) 453 iNdEx := 0 454 depth := 0 455 for iNdEx < l { 456 var wire uint64 457 for shift := uint(0); ; shift += 7 { 458 if shift >= 64 { 459 return 0, ErrIntOverflowQuery 460 } 461 if iNdEx >= l { 462 return 0, io.ErrUnexpectedEOF 463 } 464 b := dAtA[iNdEx] 465 iNdEx++ 466 wire |= (uint64(b) & 0x7F) << shift 467 if b < 0x80 { 468 break 469 } 470 } 471 wireType := int(wire & 0x7) 472 switch wireType { 473 case 0: 474 for shift := uint(0); ; shift += 7 { 475 if shift >= 64 { 476 return 0, ErrIntOverflowQuery 477 } 478 if iNdEx >= l { 479 return 0, io.ErrUnexpectedEOF 480 } 481 iNdEx++ 482 if dAtA[iNdEx-1] < 0x80 { 483 break 484 } 485 } 486 case 1: 487 iNdEx += 8 488 case 2: 489 var length int 490 for shift := uint(0); ; shift += 7 { 491 if shift >= 64 { 492 return 0, ErrIntOverflowQuery 493 } 494 if iNdEx >= l { 495 return 0, io.ErrUnexpectedEOF 496 } 497 b := dAtA[iNdEx] 498 iNdEx++ 499 length |= (int(b) & 0x7F) << shift 500 if b < 0x80 { 501 break 502 } 503 } 504 if length < 0 { 505 return 0, ErrInvalidLengthQuery 506 } 507 iNdEx += length 508 case 3: 509 depth++ 510 case 4: 511 if depth == 0 { 512 return 0, ErrUnexpectedEndOfGroupQuery 513 } 514 depth-- 515 case 5: 516 iNdEx += 4 517 default: 518 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 519 } 520 if iNdEx < 0 { 521 return 0, ErrInvalidLengthQuery 522 } 523 if depth == 0 { 524 return iNdEx, nil 525 } 526 } 527 return 0, io.ErrUnexpectedEOF 528 } 529 530 var ( 531 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 532 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 533 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 534 )