github.com/cosmos/cosmos-sdk@v0.50.10/x/mint/types/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/mint/v1beta1/query.proto 3 4 package types 5 6 import ( 7 context "context" 8 cosmossdk_io_math "cosmossdk.io/math" 9 fmt "fmt" 10 _ "github.com/cosmos/cosmos-proto" 11 _ "github.com/cosmos/cosmos-sdk/types/tx/amino" 12 _ "github.com/cosmos/gogoproto/gogoproto" 13 grpc1 "github.com/cosmos/gogoproto/grpc" 14 proto "github.com/cosmos/gogoproto/proto" 15 _ "google.golang.org/genproto/googleapis/api/annotations" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 34 35 // QueryParamsRequest is the request type for the Query/Params RPC method. 36 type QueryParamsRequest struct { 37 } 38 39 func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } 40 func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } 41 func (*QueryParamsRequest) ProtoMessage() {} 42 func (*QueryParamsRequest) Descriptor() ([]byte, []int) { 43 return fileDescriptor_d0a1e393be338aea, []int{0} 44 } 45 func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { 46 return m.Unmarshal(b) 47 } 48 func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 if deterministic { 50 return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) 51 } else { 52 b = b[:cap(b)] 53 n, err := m.MarshalToSizedBuffer(b) 54 if err != nil { 55 return nil, err 56 } 57 return b[:n], nil 58 } 59 } 60 func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { 61 xxx_messageInfo_QueryParamsRequest.Merge(m, src) 62 } 63 func (m *QueryParamsRequest) XXX_Size() int { 64 return m.Size() 65 } 66 func (m *QueryParamsRequest) XXX_DiscardUnknown() { 67 xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) 68 } 69 70 var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo 71 72 // QueryParamsResponse is the response type for the Query/Params RPC method. 73 type QueryParamsResponse struct { 74 // params defines the parameters of the module. 75 Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 76 } 77 78 func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } 79 func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } 80 func (*QueryParamsResponse) ProtoMessage() {} 81 func (*QueryParamsResponse) Descriptor() ([]byte, []int) { 82 return fileDescriptor_d0a1e393be338aea, []int{1} 83 } 84 func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { 85 return m.Unmarshal(b) 86 } 87 func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 88 if deterministic { 89 return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) 90 } else { 91 b = b[:cap(b)] 92 n, err := m.MarshalToSizedBuffer(b) 93 if err != nil { 94 return nil, err 95 } 96 return b[:n], nil 97 } 98 } 99 func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { 100 xxx_messageInfo_QueryParamsResponse.Merge(m, src) 101 } 102 func (m *QueryParamsResponse) XXX_Size() int { 103 return m.Size() 104 } 105 func (m *QueryParamsResponse) XXX_DiscardUnknown() { 106 xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) 107 } 108 109 var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo 110 111 func (m *QueryParamsResponse) GetParams() Params { 112 if m != nil { 113 return m.Params 114 } 115 return Params{} 116 } 117 118 // QueryInflationRequest is the request type for the Query/Inflation RPC method. 119 type QueryInflationRequest struct { 120 } 121 122 func (m *QueryInflationRequest) Reset() { *m = QueryInflationRequest{} } 123 func (m *QueryInflationRequest) String() string { return proto.CompactTextString(m) } 124 func (*QueryInflationRequest) ProtoMessage() {} 125 func (*QueryInflationRequest) Descriptor() ([]byte, []int) { 126 return fileDescriptor_d0a1e393be338aea, []int{2} 127 } 128 func (m *QueryInflationRequest) XXX_Unmarshal(b []byte) error { 129 return m.Unmarshal(b) 130 } 131 func (m *QueryInflationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 132 if deterministic { 133 return xxx_messageInfo_QueryInflationRequest.Marshal(b, m, deterministic) 134 } else { 135 b = b[:cap(b)] 136 n, err := m.MarshalToSizedBuffer(b) 137 if err != nil { 138 return nil, err 139 } 140 return b[:n], nil 141 } 142 } 143 func (m *QueryInflationRequest) XXX_Merge(src proto.Message) { 144 xxx_messageInfo_QueryInflationRequest.Merge(m, src) 145 } 146 func (m *QueryInflationRequest) XXX_Size() int { 147 return m.Size() 148 } 149 func (m *QueryInflationRequest) XXX_DiscardUnknown() { 150 xxx_messageInfo_QueryInflationRequest.DiscardUnknown(m) 151 } 152 153 var xxx_messageInfo_QueryInflationRequest proto.InternalMessageInfo 154 155 // QueryInflationResponse is the response type for the Query/Inflation RPC 156 // method. 157 type QueryInflationResponse struct { 158 // inflation is the current minting inflation value. 159 Inflation cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"inflation"` 160 } 161 162 func (m *QueryInflationResponse) Reset() { *m = QueryInflationResponse{} } 163 func (m *QueryInflationResponse) String() string { return proto.CompactTextString(m) } 164 func (*QueryInflationResponse) ProtoMessage() {} 165 func (*QueryInflationResponse) Descriptor() ([]byte, []int) { 166 return fileDescriptor_d0a1e393be338aea, []int{3} 167 } 168 func (m *QueryInflationResponse) XXX_Unmarshal(b []byte) error { 169 return m.Unmarshal(b) 170 } 171 func (m *QueryInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 if deterministic { 173 return xxx_messageInfo_QueryInflationResponse.Marshal(b, m, deterministic) 174 } else { 175 b = b[:cap(b)] 176 n, err := m.MarshalToSizedBuffer(b) 177 if err != nil { 178 return nil, err 179 } 180 return b[:n], nil 181 } 182 } 183 func (m *QueryInflationResponse) XXX_Merge(src proto.Message) { 184 xxx_messageInfo_QueryInflationResponse.Merge(m, src) 185 } 186 func (m *QueryInflationResponse) XXX_Size() int { 187 return m.Size() 188 } 189 func (m *QueryInflationResponse) XXX_DiscardUnknown() { 190 xxx_messageInfo_QueryInflationResponse.DiscardUnknown(m) 191 } 192 193 var xxx_messageInfo_QueryInflationResponse proto.InternalMessageInfo 194 195 // QueryAnnualProvisionsRequest is the request type for the 196 // Query/AnnualProvisions RPC method. 197 type QueryAnnualProvisionsRequest struct { 198 } 199 200 func (m *QueryAnnualProvisionsRequest) Reset() { *m = QueryAnnualProvisionsRequest{} } 201 func (m *QueryAnnualProvisionsRequest) String() string { return proto.CompactTextString(m) } 202 func (*QueryAnnualProvisionsRequest) ProtoMessage() {} 203 func (*QueryAnnualProvisionsRequest) Descriptor() ([]byte, []int) { 204 return fileDescriptor_d0a1e393be338aea, []int{4} 205 } 206 func (m *QueryAnnualProvisionsRequest) XXX_Unmarshal(b []byte) error { 207 return m.Unmarshal(b) 208 } 209 func (m *QueryAnnualProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 210 if deterministic { 211 return xxx_messageInfo_QueryAnnualProvisionsRequest.Marshal(b, m, deterministic) 212 } else { 213 b = b[:cap(b)] 214 n, err := m.MarshalToSizedBuffer(b) 215 if err != nil { 216 return nil, err 217 } 218 return b[:n], nil 219 } 220 } 221 func (m *QueryAnnualProvisionsRequest) XXX_Merge(src proto.Message) { 222 xxx_messageInfo_QueryAnnualProvisionsRequest.Merge(m, src) 223 } 224 func (m *QueryAnnualProvisionsRequest) XXX_Size() int { 225 return m.Size() 226 } 227 func (m *QueryAnnualProvisionsRequest) XXX_DiscardUnknown() { 228 xxx_messageInfo_QueryAnnualProvisionsRequest.DiscardUnknown(m) 229 } 230 231 var xxx_messageInfo_QueryAnnualProvisionsRequest proto.InternalMessageInfo 232 233 // QueryAnnualProvisionsResponse is the response type for the 234 // Query/AnnualProvisions RPC method. 235 type QueryAnnualProvisionsResponse struct { 236 // annual_provisions is the current minting annual provisions value. 237 AnnualProvisions cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"annual_provisions"` 238 } 239 240 func (m *QueryAnnualProvisionsResponse) Reset() { *m = QueryAnnualProvisionsResponse{} } 241 func (m *QueryAnnualProvisionsResponse) String() string { return proto.CompactTextString(m) } 242 func (*QueryAnnualProvisionsResponse) ProtoMessage() {} 243 func (*QueryAnnualProvisionsResponse) Descriptor() ([]byte, []int) { 244 return fileDescriptor_d0a1e393be338aea, []int{5} 245 } 246 func (m *QueryAnnualProvisionsResponse) XXX_Unmarshal(b []byte) error { 247 return m.Unmarshal(b) 248 } 249 func (m *QueryAnnualProvisionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 250 if deterministic { 251 return xxx_messageInfo_QueryAnnualProvisionsResponse.Marshal(b, m, deterministic) 252 } else { 253 b = b[:cap(b)] 254 n, err := m.MarshalToSizedBuffer(b) 255 if err != nil { 256 return nil, err 257 } 258 return b[:n], nil 259 } 260 } 261 func (m *QueryAnnualProvisionsResponse) XXX_Merge(src proto.Message) { 262 xxx_messageInfo_QueryAnnualProvisionsResponse.Merge(m, src) 263 } 264 func (m *QueryAnnualProvisionsResponse) XXX_Size() int { 265 return m.Size() 266 } 267 func (m *QueryAnnualProvisionsResponse) XXX_DiscardUnknown() { 268 xxx_messageInfo_QueryAnnualProvisionsResponse.DiscardUnknown(m) 269 } 270 271 var xxx_messageInfo_QueryAnnualProvisionsResponse proto.InternalMessageInfo 272 273 func init() { 274 proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.mint.v1beta1.QueryParamsRequest") 275 proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.mint.v1beta1.QueryParamsResponse") 276 proto.RegisterType((*QueryInflationRequest)(nil), "cosmos.mint.v1beta1.QueryInflationRequest") 277 proto.RegisterType((*QueryInflationResponse)(nil), "cosmos.mint.v1beta1.QueryInflationResponse") 278 proto.RegisterType((*QueryAnnualProvisionsRequest)(nil), "cosmos.mint.v1beta1.QueryAnnualProvisionsRequest") 279 proto.RegisterType((*QueryAnnualProvisionsResponse)(nil), "cosmos.mint.v1beta1.QueryAnnualProvisionsResponse") 280 } 281 282 func init() { proto.RegisterFile("cosmos/mint/v1beta1/query.proto", fileDescriptor_d0a1e393be338aea) } 283 284 var fileDescriptor_d0a1e393be338aea = []byte{ 285 // 494 bytes of a gzipped FileDescriptorProto 286 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4d, 0x6b, 0x14, 0x31, 287 0x18, 0xc7, 0x37, 0x8a, 0x0b, 0x1b, 0x3d, 0xb4, 0x69, 0x7d, 0x9b, 0x6d, 0xb3, 0x65, 0x84, 0xba, 288 0x56, 0x9a, 0xb0, 0x2b, 0x78, 0x14, 0x5c, 0x7b, 0x11, 0x3c, 0xd4, 0xa2, 0x17, 0x2f, 0x92, 0x9d, 289 0xc6, 0x69, 0xe8, 0x4e, 0x32, 0xdd, 0x64, 0x8a, 0x7b, 0x13, 0xf1, 0xe8, 0x41, 0xf0, 0x4b, 0xe8, 290 0xcd, 0x83, 0x5f, 0x41, 0xe8, 0xb1, 0xe8, 0x45, 0x3c, 0x14, 0xd9, 0x15, 0xfc, 0x1a, 0x32, 0x49, 291 0xa6, 0xe2, 0x74, 0x06, 0x95, 0x5e, 0x76, 0x67, 0x9e, 0xb7, 0xff, 0x2f, 0xcf, 0x3f, 0x03, 0x3b, 292 0x91, 0xd2, 0x89, 0xd2, 0x34, 0x11, 0xd2, 0xd0, 0xfd, 0xde, 0x90, 0x1b, 0xd6, 0xa3, 0x7b, 0x19, 293 0x1f, 0x4f, 0x48, 0x3a, 0x56, 0x46, 0xa1, 0x05, 0x57, 0x40, 0xf2, 0x02, 0xe2, 0x0b, 0x82, 0xc5, 294 0x58, 0xc5, 0xca, 0xe6, 0x69, 0xfe, 0xe4, 0x4a, 0x83, 0xa5, 0x58, 0xa9, 0x78, 0xc4, 0x29, 0x4b, 295 0x05, 0x65, 0x52, 0x2a, 0xc3, 0x8c, 0x50, 0x52, 0xfb, 0x2c, 0xae, 0x52, 0xb2, 0x53, 0x5d, 0x7e, 296 0x9e, 0x25, 0x42, 0x2a, 0x6a, 0x7f, 0x7d, 0xe8, 0xaa, 0x6b, 0x79, 0xea, 0x94, 0x3c, 0x88, 0x7d, 297 0x09, 0x17, 0x21, 0x7a, 0x98, 0x53, 0x6e, 0xb2, 0x31, 0x4b, 0xf4, 0x16, 0xdf, 0xcb, 0xb8, 0x36, 298 0xe1, 0x63, 0xb8, 0xf0, 0x47, 0x54, 0xa7, 0x4a, 0x6a, 0x8e, 0xee, 0xc0, 0x66, 0x6a, 0x23, 0x57, 299 0xc0, 0x0a, 0xe8, 0x9e, 0xef, 0xb7, 0x49, 0xc5, 0xa1, 0x88, 0x6b, 0x1a, 0xb4, 0x0e, 0x8e, 0x3a, 300 0x8d, 0x77, 0x3f, 0x3f, 0xac, 0x81, 0x2d, 0xdf, 0x15, 0x5e, 0x86, 0x17, 0xed, 0xd8, 0xfb, 0xf2, 301 0xd9, 0xc8, 0x9e, 0xa9, 0xd0, 0x93, 0xf0, 0x52, 0x39, 0xe1, 0x25, 0x1f, 0xc1, 0x96, 0x28, 0x82, 302 0x56, 0xf5, 0xc2, 0xe0, 0x76, 0x3e, 0xf8, 0xdb, 0x51, 0xa7, 0xed, 0xc4, 0xf5, 0xf6, 0x2e, 0x11, 303 0x8a, 0x26, 0xcc, 0xec, 0x90, 0x07, 0x3c, 0x66, 0xd1, 0x64, 0x83, 0x47, 0x9f, 0x3f, 0xae, 0x43, 304 0xcf, 0xb6, 0xc1, 0x23, 0x47, 0xf1, 0x7b, 0x50, 0x88, 0xe1, 0x92, 0xd5, 0xbb, 0x2b, 0x65, 0xc6, 305 0x46, 0x9b, 0x63, 0xb5, 0x2f, 0x74, 0xbe, 0xe2, 0x82, 0xe7, 0x15, 0x80, 0xcb, 0x35, 0x05, 0x9e, 306 0x2b, 0x82, 0xf3, 0xcc, 0xe6, 0xf2, 0xa5, 0xfa, 0xe4, 0x29, 0xf9, 0xe6, 0x58, 0x49, 0xac, 0xff, 307 0xe9, 0x2c, 0x3c, 0x67, 0x31, 0xd0, 0x0b, 0x00, 0x9b, 0x6e, 0xaf, 0xe8, 0x7a, 0xe5, 0xd2, 0x4f, 308 0x9a, 0x18, 0x74, 0xff, 0x5e, 0xe8, 0x0e, 0x13, 0x5e, 0x7b, 0xf9, 0xe5, 0xc7, 0xdb, 0x33, 0xcb, 309 0xa8, 0x4d, 0xab, 0xee, 0x96, 0x33, 0x0f, 0xbd, 0x06, 0xb0, 0x75, 0xec, 0x0f, 0x5a, 0xab, 0x1f, 310 0x5e, 0x76, 0x37, 0xb8, 0xf9, 0x4f, 0xb5, 0x9e, 0x65, 0xd5, 0xb2, 0xac, 0x20, 0x5c, 0xc9, 0x72, 311 0x6c, 0x21, 0x7a, 0x0f, 0xe0, 0x5c, 0xd9, 0x1d, 0xd4, 0xab, 0x57, 0xaa, 0xb1, 0x3a, 0xe8, 0xff, 312 0x4f, 0x8b, 0x67, 0x24, 0x96, 0xb1, 0x8b, 0x56, 0x2b, 0x19, 0x4f, 0xdc, 0x8b, 0xc1, 0xbd, 0x83, 313 0x29, 0x06, 0x87, 0x53, 0x0c, 0xbe, 0x4f, 0x31, 0x78, 0x33, 0xc3, 0x8d, 0xc3, 0x19, 0x6e, 0x7c, 314 0x9d, 0xe1, 0xc6, 0x93, 0x1b, 0xb1, 0x30, 0x3b, 0xd9, 0x90, 0x44, 0x2a, 0x29, 0x66, 0xb9, 0xbf, 315 0x75, 0xbd, 0xbd, 0x4b, 0x9f, 0xbb, 0xc1, 0x66, 0x92, 0x72, 0x3d, 0x6c, 0xda, 0x0f, 0xf6, 0xd6, 316 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x62, 0x1a, 0x74, 0xc5, 0x6a, 0x04, 0x00, 0x00, 317 } 318 319 // Reference imports to suppress errors if they are not otherwise used. 320 var _ context.Context 321 var _ grpc.ClientConn 322 323 // This is a compile-time assertion to ensure that this generated file 324 // is compatible with the grpc package it is being compiled against. 325 const _ = grpc.SupportPackageIsVersion4 326 327 // QueryClient is the client API for Query service. 328 // 329 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 330 type QueryClient interface { 331 // Params returns the total set of minting parameters. 332 Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) 333 // Inflation returns the current minting inflation value. 334 Inflation(ctx context.Context, in *QueryInflationRequest, opts ...grpc.CallOption) (*QueryInflationResponse, error) 335 // AnnualProvisions current minting annual provisions value. 336 AnnualProvisions(ctx context.Context, in *QueryAnnualProvisionsRequest, opts ...grpc.CallOption) (*QueryAnnualProvisionsResponse, error) 337 } 338 339 type queryClient struct { 340 cc grpc1.ClientConn 341 } 342 343 func NewQueryClient(cc grpc1.ClientConn) QueryClient { 344 return &queryClient{cc} 345 } 346 347 func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { 348 out := new(QueryParamsResponse) 349 err := c.cc.Invoke(ctx, "/cosmos.mint.v1beta1.Query/Params", in, out, opts...) 350 if err != nil { 351 return nil, err 352 } 353 return out, nil 354 } 355 356 func (c *queryClient) Inflation(ctx context.Context, in *QueryInflationRequest, opts ...grpc.CallOption) (*QueryInflationResponse, error) { 357 out := new(QueryInflationResponse) 358 err := c.cc.Invoke(ctx, "/cosmos.mint.v1beta1.Query/Inflation", in, out, opts...) 359 if err != nil { 360 return nil, err 361 } 362 return out, nil 363 } 364 365 func (c *queryClient) AnnualProvisions(ctx context.Context, in *QueryAnnualProvisionsRequest, opts ...grpc.CallOption) (*QueryAnnualProvisionsResponse, error) { 366 out := new(QueryAnnualProvisionsResponse) 367 err := c.cc.Invoke(ctx, "/cosmos.mint.v1beta1.Query/AnnualProvisions", in, out, opts...) 368 if err != nil { 369 return nil, err 370 } 371 return out, nil 372 } 373 374 // QueryServer is the server API for Query service. 375 type QueryServer interface { 376 // Params returns the total set of minting parameters. 377 Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) 378 // Inflation returns the current minting inflation value. 379 Inflation(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error) 380 // AnnualProvisions current minting annual provisions value. 381 AnnualProvisions(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) 382 } 383 384 // UnimplementedQueryServer can be embedded to have forward compatible implementations. 385 type UnimplementedQueryServer struct { 386 } 387 388 func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { 389 return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") 390 } 391 func (*UnimplementedQueryServer) Inflation(ctx context.Context, req *QueryInflationRequest) (*QueryInflationResponse, error) { 392 return nil, status.Errorf(codes.Unimplemented, "method Inflation not implemented") 393 } 394 func (*UnimplementedQueryServer) AnnualProvisions(ctx context.Context, req *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) { 395 return nil, status.Errorf(codes.Unimplemented, "method AnnualProvisions not implemented") 396 } 397 398 func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 399 s.RegisterService(&_Query_serviceDesc, srv) 400 } 401 402 func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 403 in := new(QueryParamsRequest) 404 if err := dec(in); err != nil { 405 return nil, err 406 } 407 if interceptor == nil { 408 return srv.(QueryServer).Params(ctx, in) 409 } 410 info := &grpc.UnaryServerInfo{ 411 Server: srv, 412 FullMethod: "/cosmos.mint.v1beta1.Query/Params", 413 } 414 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 415 return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) 416 } 417 return interceptor(ctx, in, info, handler) 418 } 419 420 func _Query_Inflation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 421 in := new(QueryInflationRequest) 422 if err := dec(in); err != nil { 423 return nil, err 424 } 425 if interceptor == nil { 426 return srv.(QueryServer).Inflation(ctx, in) 427 } 428 info := &grpc.UnaryServerInfo{ 429 Server: srv, 430 FullMethod: "/cosmos.mint.v1beta1.Query/Inflation", 431 } 432 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 433 return srv.(QueryServer).Inflation(ctx, req.(*QueryInflationRequest)) 434 } 435 return interceptor(ctx, in, info, handler) 436 } 437 438 func _Query_AnnualProvisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 439 in := new(QueryAnnualProvisionsRequest) 440 if err := dec(in); err != nil { 441 return nil, err 442 } 443 if interceptor == nil { 444 return srv.(QueryServer).AnnualProvisions(ctx, in) 445 } 446 info := &grpc.UnaryServerInfo{ 447 Server: srv, 448 FullMethod: "/cosmos.mint.v1beta1.Query/AnnualProvisions", 449 } 450 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 451 return srv.(QueryServer).AnnualProvisions(ctx, req.(*QueryAnnualProvisionsRequest)) 452 } 453 return interceptor(ctx, in, info, handler) 454 } 455 456 var _Query_serviceDesc = grpc.ServiceDesc{ 457 ServiceName: "cosmos.mint.v1beta1.Query", 458 HandlerType: (*QueryServer)(nil), 459 Methods: []grpc.MethodDesc{ 460 { 461 MethodName: "Params", 462 Handler: _Query_Params_Handler, 463 }, 464 { 465 MethodName: "Inflation", 466 Handler: _Query_Inflation_Handler, 467 }, 468 { 469 MethodName: "AnnualProvisions", 470 Handler: _Query_AnnualProvisions_Handler, 471 }, 472 }, 473 Streams: []grpc.StreamDesc{}, 474 Metadata: "cosmos/mint/v1beta1/query.proto", 475 } 476 477 func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { 478 size := m.Size() 479 dAtA = make([]byte, size) 480 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 481 if err != nil { 482 return nil, err 483 } 484 return dAtA[:n], nil 485 } 486 487 func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { 488 size := m.Size() 489 return m.MarshalToSizedBuffer(dAtA[:size]) 490 } 491 492 func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 493 i := len(dAtA) 494 _ = i 495 var l int 496 _ = l 497 return len(dAtA) - i, nil 498 } 499 500 func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { 501 size := m.Size() 502 dAtA = make([]byte, size) 503 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 504 if err != nil { 505 return nil, err 506 } 507 return dAtA[:n], nil 508 } 509 510 func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { 511 size := m.Size() 512 return m.MarshalToSizedBuffer(dAtA[:size]) 513 } 514 515 func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 516 i := len(dAtA) 517 _ = i 518 var l int 519 _ = l 520 { 521 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 522 if err != nil { 523 return 0, err 524 } 525 i -= size 526 i = encodeVarintQuery(dAtA, i, uint64(size)) 527 } 528 i-- 529 dAtA[i] = 0xa 530 return len(dAtA) - i, nil 531 } 532 533 func (m *QueryInflationRequest) Marshal() (dAtA []byte, err error) { 534 size := m.Size() 535 dAtA = make([]byte, size) 536 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 537 if err != nil { 538 return nil, err 539 } 540 return dAtA[:n], nil 541 } 542 543 func (m *QueryInflationRequest) MarshalTo(dAtA []byte) (int, error) { 544 size := m.Size() 545 return m.MarshalToSizedBuffer(dAtA[:size]) 546 } 547 548 func (m *QueryInflationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 549 i := len(dAtA) 550 _ = i 551 var l int 552 _ = l 553 return len(dAtA) - i, nil 554 } 555 556 func (m *QueryInflationResponse) Marshal() (dAtA []byte, err error) { 557 size := m.Size() 558 dAtA = make([]byte, size) 559 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 560 if err != nil { 561 return nil, err 562 } 563 return dAtA[:n], nil 564 } 565 566 func (m *QueryInflationResponse) MarshalTo(dAtA []byte) (int, error) { 567 size := m.Size() 568 return m.MarshalToSizedBuffer(dAtA[:size]) 569 } 570 571 func (m *QueryInflationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 572 i := len(dAtA) 573 _ = i 574 var l int 575 _ = l 576 { 577 size := m.Inflation.Size() 578 i -= size 579 if _, err := m.Inflation.MarshalTo(dAtA[i:]); err != nil { 580 return 0, err 581 } 582 i = encodeVarintQuery(dAtA, i, uint64(size)) 583 } 584 i-- 585 dAtA[i] = 0xa 586 return len(dAtA) - i, nil 587 } 588 589 func (m *QueryAnnualProvisionsRequest) Marshal() (dAtA []byte, err error) { 590 size := m.Size() 591 dAtA = make([]byte, size) 592 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 593 if err != nil { 594 return nil, err 595 } 596 return dAtA[:n], nil 597 } 598 599 func (m *QueryAnnualProvisionsRequest) MarshalTo(dAtA []byte) (int, error) { 600 size := m.Size() 601 return m.MarshalToSizedBuffer(dAtA[:size]) 602 } 603 604 func (m *QueryAnnualProvisionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 605 i := len(dAtA) 606 _ = i 607 var l int 608 _ = l 609 return len(dAtA) - i, nil 610 } 611 612 func (m *QueryAnnualProvisionsResponse) Marshal() (dAtA []byte, err error) { 613 size := m.Size() 614 dAtA = make([]byte, size) 615 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 616 if err != nil { 617 return nil, err 618 } 619 return dAtA[:n], nil 620 } 621 622 func (m *QueryAnnualProvisionsResponse) MarshalTo(dAtA []byte) (int, error) { 623 size := m.Size() 624 return m.MarshalToSizedBuffer(dAtA[:size]) 625 } 626 627 func (m *QueryAnnualProvisionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 628 i := len(dAtA) 629 _ = i 630 var l int 631 _ = l 632 { 633 size := m.AnnualProvisions.Size() 634 i -= size 635 if _, err := m.AnnualProvisions.MarshalTo(dAtA[i:]); err != nil { 636 return 0, err 637 } 638 i = encodeVarintQuery(dAtA, i, uint64(size)) 639 } 640 i-- 641 dAtA[i] = 0xa 642 return len(dAtA) - i, nil 643 } 644 645 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 646 offset -= sovQuery(v) 647 base := offset 648 for v >= 1<<7 { 649 dAtA[offset] = uint8(v&0x7f | 0x80) 650 v >>= 7 651 offset++ 652 } 653 dAtA[offset] = uint8(v) 654 return base 655 } 656 func (m *QueryParamsRequest) Size() (n int) { 657 if m == nil { 658 return 0 659 } 660 var l int 661 _ = l 662 return n 663 } 664 665 func (m *QueryParamsResponse) Size() (n int) { 666 if m == nil { 667 return 0 668 } 669 var l int 670 _ = l 671 l = m.Params.Size() 672 n += 1 + l + sovQuery(uint64(l)) 673 return n 674 } 675 676 func (m *QueryInflationRequest) Size() (n int) { 677 if m == nil { 678 return 0 679 } 680 var l int 681 _ = l 682 return n 683 } 684 685 func (m *QueryInflationResponse) Size() (n int) { 686 if m == nil { 687 return 0 688 } 689 var l int 690 _ = l 691 l = m.Inflation.Size() 692 n += 1 + l + sovQuery(uint64(l)) 693 return n 694 } 695 696 func (m *QueryAnnualProvisionsRequest) Size() (n int) { 697 if m == nil { 698 return 0 699 } 700 var l int 701 _ = l 702 return n 703 } 704 705 func (m *QueryAnnualProvisionsResponse) Size() (n int) { 706 if m == nil { 707 return 0 708 } 709 var l int 710 _ = l 711 l = m.AnnualProvisions.Size() 712 n += 1 + l + sovQuery(uint64(l)) 713 return n 714 } 715 716 func sovQuery(x uint64) (n int) { 717 return (math_bits.Len64(x|1) + 6) / 7 718 } 719 func sozQuery(x uint64) (n int) { 720 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 721 } 722 func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { 723 l := len(dAtA) 724 iNdEx := 0 725 for iNdEx < l { 726 preIndex := iNdEx 727 var wire uint64 728 for shift := uint(0); ; shift += 7 { 729 if shift >= 64 { 730 return ErrIntOverflowQuery 731 } 732 if iNdEx >= l { 733 return io.ErrUnexpectedEOF 734 } 735 b := dAtA[iNdEx] 736 iNdEx++ 737 wire |= uint64(b&0x7F) << shift 738 if b < 0x80 { 739 break 740 } 741 } 742 fieldNum := int32(wire >> 3) 743 wireType := int(wire & 0x7) 744 if wireType == 4 { 745 return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") 746 } 747 if fieldNum <= 0 { 748 return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 749 } 750 switch fieldNum { 751 default: 752 iNdEx = preIndex 753 skippy, err := skipQuery(dAtA[iNdEx:]) 754 if err != nil { 755 return err 756 } 757 if (skippy < 0) || (iNdEx+skippy) < 0 { 758 return ErrInvalidLengthQuery 759 } 760 if (iNdEx + skippy) > l { 761 return io.ErrUnexpectedEOF 762 } 763 iNdEx += skippy 764 } 765 } 766 767 if iNdEx > l { 768 return io.ErrUnexpectedEOF 769 } 770 return nil 771 } 772 func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { 773 l := len(dAtA) 774 iNdEx := 0 775 for iNdEx < l { 776 preIndex := iNdEx 777 var wire uint64 778 for shift := uint(0); ; shift += 7 { 779 if shift >= 64 { 780 return ErrIntOverflowQuery 781 } 782 if iNdEx >= l { 783 return io.ErrUnexpectedEOF 784 } 785 b := dAtA[iNdEx] 786 iNdEx++ 787 wire |= uint64(b&0x7F) << shift 788 if b < 0x80 { 789 break 790 } 791 } 792 fieldNum := int32(wire >> 3) 793 wireType := int(wire & 0x7) 794 if wireType == 4 { 795 return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") 796 } 797 if fieldNum <= 0 { 798 return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 799 } 800 switch fieldNum { 801 case 1: 802 if wireType != 2 { 803 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 804 } 805 var msglen int 806 for shift := uint(0); ; shift += 7 { 807 if shift >= 64 { 808 return ErrIntOverflowQuery 809 } 810 if iNdEx >= l { 811 return io.ErrUnexpectedEOF 812 } 813 b := dAtA[iNdEx] 814 iNdEx++ 815 msglen |= int(b&0x7F) << shift 816 if b < 0x80 { 817 break 818 } 819 } 820 if msglen < 0 { 821 return ErrInvalidLengthQuery 822 } 823 postIndex := iNdEx + msglen 824 if postIndex < 0 { 825 return ErrInvalidLengthQuery 826 } 827 if postIndex > l { 828 return io.ErrUnexpectedEOF 829 } 830 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 831 return err 832 } 833 iNdEx = postIndex 834 default: 835 iNdEx = preIndex 836 skippy, err := skipQuery(dAtA[iNdEx:]) 837 if err != nil { 838 return err 839 } 840 if (skippy < 0) || (iNdEx+skippy) < 0 { 841 return ErrInvalidLengthQuery 842 } 843 if (iNdEx + skippy) > l { 844 return io.ErrUnexpectedEOF 845 } 846 iNdEx += skippy 847 } 848 } 849 850 if iNdEx > l { 851 return io.ErrUnexpectedEOF 852 } 853 return nil 854 } 855 func (m *QueryInflationRequest) Unmarshal(dAtA []byte) error { 856 l := len(dAtA) 857 iNdEx := 0 858 for iNdEx < l { 859 preIndex := iNdEx 860 var wire uint64 861 for shift := uint(0); ; shift += 7 { 862 if shift >= 64 { 863 return ErrIntOverflowQuery 864 } 865 if iNdEx >= l { 866 return io.ErrUnexpectedEOF 867 } 868 b := dAtA[iNdEx] 869 iNdEx++ 870 wire |= uint64(b&0x7F) << shift 871 if b < 0x80 { 872 break 873 } 874 } 875 fieldNum := int32(wire >> 3) 876 wireType := int(wire & 0x7) 877 if wireType == 4 { 878 return fmt.Errorf("proto: QueryInflationRequest: wiretype end group for non-group") 879 } 880 if fieldNum <= 0 { 881 return fmt.Errorf("proto: QueryInflationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 882 } 883 switch fieldNum { 884 default: 885 iNdEx = preIndex 886 skippy, err := skipQuery(dAtA[iNdEx:]) 887 if err != nil { 888 return err 889 } 890 if (skippy < 0) || (iNdEx+skippy) < 0 { 891 return ErrInvalidLengthQuery 892 } 893 if (iNdEx + skippy) > l { 894 return io.ErrUnexpectedEOF 895 } 896 iNdEx += skippy 897 } 898 } 899 900 if iNdEx > l { 901 return io.ErrUnexpectedEOF 902 } 903 return nil 904 } 905 func (m *QueryInflationResponse) Unmarshal(dAtA []byte) error { 906 l := len(dAtA) 907 iNdEx := 0 908 for iNdEx < l { 909 preIndex := iNdEx 910 var wire uint64 911 for shift := uint(0); ; shift += 7 { 912 if shift >= 64 { 913 return ErrIntOverflowQuery 914 } 915 if iNdEx >= l { 916 return io.ErrUnexpectedEOF 917 } 918 b := dAtA[iNdEx] 919 iNdEx++ 920 wire |= uint64(b&0x7F) << shift 921 if b < 0x80 { 922 break 923 } 924 } 925 fieldNum := int32(wire >> 3) 926 wireType := int(wire & 0x7) 927 if wireType == 4 { 928 return fmt.Errorf("proto: QueryInflationResponse: wiretype end group for non-group") 929 } 930 if fieldNum <= 0 { 931 return fmt.Errorf("proto: QueryInflationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 932 } 933 switch fieldNum { 934 case 1: 935 if wireType != 2 { 936 return fmt.Errorf("proto: wrong wireType = %d for field Inflation", wireType) 937 } 938 var byteLen int 939 for shift := uint(0); ; shift += 7 { 940 if shift >= 64 { 941 return ErrIntOverflowQuery 942 } 943 if iNdEx >= l { 944 return io.ErrUnexpectedEOF 945 } 946 b := dAtA[iNdEx] 947 iNdEx++ 948 byteLen |= int(b&0x7F) << shift 949 if b < 0x80 { 950 break 951 } 952 } 953 if byteLen < 0 { 954 return ErrInvalidLengthQuery 955 } 956 postIndex := iNdEx + byteLen 957 if postIndex < 0 { 958 return ErrInvalidLengthQuery 959 } 960 if postIndex > l { 961 return io.ErrUnexpectedEOF 962 } 963 if err := m.Inflation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 964 return err 965 } 966 iNdEx = postIndex 967 default: 968 iNdEx = preIndex 969 skippy, err := skipQuery(dAtA[iNdEx:]) 970 if err != nil { 971 return err 972 } 973 if (skippy < 0) || (iNdEx+skippy) < 0 { 974 return ErrInvalidLengthQuery 975 } 976 if (iNdEx + skippy) > l { 977 return io.ErrUnexpectedEOF 978 } 979 iNdEx += skippy 980 } 981 } 982 983 if iNdEx > l { 984 return io.ErrUnexpectedEOF 985 } 986 return nil 987 } 988 func (m *QueryAnnualProvisionsRequest) Unmarshal(dAtA []byte) error { 989 l := len(dAtA) 990 iNdEx := 0 991 for iNdEx < l { 992 preIndex := iNdEx 993 var wire uint64 994 for shift := uint(0); ; shift += 7 { 995 if shift >= 64 { 996 return ErrIntOverflowQuery 997 } 998 if iNdEx >= l { 999 return io.ErrUnexpectedEOF 1000 } 1001 b := dAtA[iNdEx] 1002 iNdEx++ 1003 wire |= uint64(b&0x7F) << shift 1004 if b < 0x80 { 1005 break 1006 } 1007 } 1008 fieldNum := int32(wire >> 3) 1009 wireType := int(wire & 0x7) 1010 if wireType == 4 { 1011 return fmt.Errorf("proto: QueryAnnualProvisionsRequest: wiretype end group for non-group") 1012 } 1013 if fieldNum <= 0 { 1014 return fmt.Errorf("proto: QueryAnnualProvisionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1015 } 1016 switch fieldNum { 1017 default: 1018 iNdEx = preIndex 1019 skippy, err := skipQuery(dAtA[iNdEx:]) 1020 if err != nil { 1021 return err 1022 } 1023 if (skippy < 0) || (iNdEx+skippy) < 0 { 1024 return ErrInvalidLengthQuery 1025 } 1026 if (iNdEx + skippy) > l { 1027 return io.ErrUnexpectedEOF 1028 } 1029 iNdEx += skippy 1030 } 1031 } 1032 1033 if iNdEx > l { 1034 return io.ErrUnexpectedEOF 1035 } 1036 return nil 1037 } 1038 func (m *QueryAnnualProvisionsResponse) Unmarshal(dAtA []byte) error { 1039 l := len(dAtA) 1040 iNdEx := 0 1041 for iNdEx < l { 1042 preIndex := iNdEx 1043 var wire uint64 1044 for shift := uint(0); ; shift += 7 { 1045 if shift >= 64 { 1046 return ErrIntOverflowQuery 1047 } 1048 if iNdEx >= l { 1049 return io.ErrUnexpectedEOF 1050 } 1051 b := dAtA[iNdEx] 1052 iNdEx++ 1053 wire |= uint64(b&0x7F) << shift 1054 if b < 0x80 { 1055 break 1056 } 1057 } 1058 fieldNum := int32(wire >> 3) 1059 wireType := int(wire & 0x7) 1060 if wireType == 4 { 1061 return fmt.Errorf("proto: QueryAnnualProvisionsResponse: wiretype end group for non-group") 1062 } 1063 if fieldNum <= 0 { 1064 return fmt.Errorf("proto: QueryAnnualProvisionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1065 } 1066 switch fieldNum { 1067 case 1: 1068 if wireType != 2 { 1069 return fmt.Errorf("proto: wrong wireType = %d for field AnnualProvisions", wireType) 1070 } 1071 var byteLen int 1072 for shift := uint(0); ; shift += 7 { 1073 if shift >= 64 { 1074 return ErrIntOverflowQuery 1075 } 1076 if iNdEx >= l { 1077 return io.ErrUnexpectedEOF 1078 } 1079 b := dAtA[iNdEx] 1080 iNdEx++ 1081 byteLen |= int(b&0x7F) << shift 1082 if b < 0x80 { 1083 break 1084 } 1085 } 1086 if byteLen < 0 { 1087 return ErrInvalidLengthQuery 1088 } 1089 postIndex := iNdEx + byteLen 1090 if postIndex < 0 { 1091 return ErrInvalidLengthQuery 1092 } 1093 if postIndex > l { 1094 return io.ErrUnexpectedEOF 1095 } 1096 if err := m.AnnualProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1097 return err 1098 } 1099 iNdEx = postIndex 1100 default: 1101 iNdEx = preIndex 1102 skippy, err := skipQuery(dAtA[iNdEx:]) 1103 if err != nil { 1104 return err 1105 } 1106 if (skippy < 0) || (iNdEx+skippy) < 0 { 1107 return ErrInvalidLengthQuery 1108 } 1109 if (iNdEx + skippy) > l { 1110 return io.ErrUnexpectedEOF 1111 } 1112 iNdEx += skippy 1113 } 1114 } 1115 1116 if iNdEx > l { 1117 return io.ErrUnexpectedEOF 1118 } 1119 return nil 1120 } 1121 func skipQuery(dAtA []byte) (n int, err error) { 1122 l := len(dAtA) 1123 iNdEx := 0 1124 depth := 0 1125 for iNdEx < l { 1126 var wire uint64 1127 for shift := uint(0); ; shift += 7 { 1128 if shift >= 64 { 1129 return 0, ErrIntOverflowQuery 1130 } 1131 if iNdEx >= l { 1132 return 0, io.ErrUnexpectedEOF 1133 } 1134 b := dAtA[iNdEx] 1135 iNdEx++ 1136 wire |= (uint64(b) & 0x7F) << shift 1137 if b < 0x80 { 1138 break 1139 } 1140 } 1141 wireType := int(wire & 0x7) 1142 switch wireType { 1143 case 0: 1144 for shift := uint(0); ; shift += 7 { 1145 if shift >= 64 { 1146 return 0, ErrIntOverflowQuery 1147 } 1148 if iNdEx >= l { 1149 return 0, io.ErrUnexpectedEOF 1150 } 1151 iNdEx++ 1152 if dAtA[iNdEx-1] < 0x80 { 1153 break 1154 } 1155 } 1156 case 1: 1157 iNdEx += 8 1158 case 2: 1159 var length int 1160 for shift := uint(0); ; shift += 7 { 1161 if shift >= 64 { 1162 return 0, ErrIntOverflowQuery 1163 } 1164 if iNdEx >= l { 1165 return 0, io.ErrUnexpectedEOF 1166 } 1167 b := dAtA[iNdEx] 1168 iNdEx++ 1169 length |= (int(b) & 0x7F) << shift 1170 if b < 0x80 { 1171 break 1172 } 1173 } 1174 if length < 0 { 1175 return 0, ErrInvalidLengthQuery 1176 } 1177 iNdEx += length 1178 case 3: 1179 depth++ 1180 case 4: 1181 if depth == 0 { 1182 return 0, ErrUnexpectedEndOfGroupQuery 1183 } 1184 depth-- 1185 case 5: 1186 iNdEx += 4 1187 default: 1188 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1189 } 1190 if iNdEx < 0 { 1191 return 0, ErrInvalidLengthQuery 1192 } 1193 if depth == 0 { 1194 return iNdEx, nil 1195 } 1196 } 1197 return 0, io.ErrUnexpectedEOF 1198 } 1199 1200 var ( 1201 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 1202 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 1203 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 1204 )