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