-
Notifications
You must be signed in to change notification settings - Fork 45
/
query.pb.go
476 lines (442 loc) · 22.3 KB
/
query.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: desmos/profiles/v3/query.proto
package types
import (
context "context"
fmt "fmt"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("desmos/profiles/v3/query.proto", fileDescriptor_bcbdebc2a1cf2f2b) }
var fileDescriptor_bcbdebc2a1cf2f2b = []byte{
// 615 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x4f, 0x6b, 0x13, 0x4f,
0x18, 0xc7, 0xbb, 0x3f, 0xf8, 0x55, 0x18, 0x04, 0xe5, 0x01, 0x41, 0x43, 0xdc, 0x62, 0x35, 0x7f,
0x48, 0xb3, 0xbb, 0x4d, 0x43, 0x8b, 0x11, 0x3d, 0xb4, 0x8d, 0x87, 0xa2, 0x60, 0x95, 0x9e, 0xbc,
0x84, 0x49, 0x32, 0xd9, 0x2e, 0x6e, 0x66, 0xb6, 0x3b, 0x9b, 0xd8, 0x50, 0x72, 0xf1, 0xe6, 0xa5,
0x08, 0xde, 0x3d, 0xf9, 0x12, 0x7c, 0x0f, 0x7a, 0x11, 0x0b, 0x5e, 0x3c, 0x4a, 0xe2, 0x0b, 0x91,
0xcc, 0xce, 0x24, 0x1a, 0x77, 0x92, 0x34, 0xb7, 0x25, 0xf3, 0xfd, 0x3e, 0xcf, 0xe7, 0x3b, 0xcf,
0xc3, 0x04, 0x99, 0x4d, 0xc2, 0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 0xb0, 0x8c, 0x55, 0xb2, 0x57, 0x04, 0x7b, 0x19, 0x4a, 0x33, 0xd9,
0x9d, 0x86, 0xf0, 0x71, 0xe7, 0x2c, 0xfe, 0xa8, 0x79, 0xcd, 0x3e, 0x7c, 0x32, 0xd0, 0x8d, 0xa9,
0x06, 0x72, 0xcf, 0xb7, 0x17, 0x05, 0xfa, 0x7b, 0xdb, 0x77, 0x2e, 0x6b, 0x93, 0x19, 0x8a, 0x22,
0x43, 0x16, 0xee, 0xcd, 0xce, 0x20, 0x37, 0xbe, 0x8f, 0x56, 0x0f, 0xc5, 0xbb, 0x0f, 0x59, 0xfd,
0xe3, 0x2a, 0x04, 0x8a, 0x2b, 0x37, 0x57, 0x27, 0x41, 0xd6, 0x05, 0x48, 0x1a, 0x52, 0x89, 0x6f,
0xb0, 0xd0, 0xee, 0x3d, 0xf9, 0x32, 0x30, 0x8d, 0x8b, 0x81, 0x69, 0xfc, 0x1c, 0x98, 0xc6, 0xbb,
0xa1, 0xb9, 0x72, 0x31, 0x34, 0x57, 0x7e, 0x0c, 0xcd, 0x95, 0x97, 0x25, 0xd7, 0x8b, 0x8e, 0x3b,
0x75, 0xbb, 0xc1, 0xda, 0xd2, 0x6f, 0xf9, 0xb8, 0xce, 0x55, 0xad, 0xee, 0xb6, 0x73, 0x3a, 0x29,
0x18, 0xf5, 0x02, 0xc2, 0xeb, 0xab, 0xe2, 0x4f, 0xa6, 0xfc, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x4b,
0x59, 0x27, 0x33, 0x8b, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
// Profile queries the profile of a specific user given their DTag or address.
// If the queried user does not have a profile, the returned response will
// contain a null profile.
Profile(ctx context.Context, in *QueryProfileRequest, opts ...grpc.CallOption) (*QueryProfileResponse, error)
// IncomingDTagTransferRequests queries all the DTag transfers requests that
// have been made towards the user with the given address
IncomingDTagTransferRequests(ctx context.Context, in *QueryIncomingDTagTransferRequestsRequest, opts ...grpc.CallOption) (*QueryIncomingDTagTransferRequestsResponse, error)
// ChainLinks queries the chain links associated to the given user, if
// provided. Otherwise it queries all the chain links stored.
ChainLinks(ctx context.Context, in *QueryChainLinksRequest, opts ...grpc.CallOption) (*QueryChainLinksResponse, error)
// ChainLinkOwners queries for the owners of chain links, optionally searching
// for a specific chain name and external address
ChainLinkOwners(ctx context.Context, in *QueryChainLinkOwnersRequest, opts ...grpc.CallOption) (*QueryChainLinkOwnersResponse, error)
// DefaultExternalAddresses queries the default addresses associated to the
// given user and (optionally) chain name
DefaultExternalAddresses(ctx context.Context, in *QueryDefaultExternalAddressesRequest, opts ...grpc.CallOption) (*QueryDefaultExternalAddressesResponse, error)
// ApplicationLinks queries the applications links associated to the given
// user, if provided. Otherwise, it queries all the application links stored.
ApplicationLinks(ctx context.Context, in *QueryApplicationLinksRequest, opts ...grpc.CallOption) (*QueryApplicationLinksResponse, error)
// ApplicationLinkByClientID queries a single application link for a given
// client id.
ApplicationLinkByClientID(ctx context.Context, in *QueryApplicationLinkByClientIDRequest, opts ...grpc.CallOption) (*QueryApplicationLinkByClientIDResponse, error)
// ApplicationLinkOwners queries for the owners of applications links,
// optionally searching for a specific application and username.
ApplicationLinkOwners(ctx context.Context, in *QueryApplicationLinkOwnersRequest, opts ...grpc.CallOption) (*QueryApplicationLinkOwnersResponse, error)
// Params queries the profiles module params
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Profile(ctx context.Context, in *QueryProfileRequest, opts ...grpc.CallOption) (*QueryProfileResponse, error) {
out := new(QueryProfileResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/Profile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) IncomingDTagTransferRequests(ctx context.Context, in *QueryIncomingDTagTransferRequestsRequest, opts ...grpc.CallOption) (*QueryIncomingDTagTransferRequestsResponse, error) {
out := new(QueryIncomingDTagTransferRequestsResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/IncomingDTagTransferRequests", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ChainLinks(ctx context.Context, in *QueryChainLinksRequest, opts ...grpc.CallOption) (*QueryChainLinksResponse, error) {
out := new(QueryChainLinksResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/ChainLinks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ChainLinkOwners(ctx context.Context, in *QueryChainLinkOwnersRequest, opts ...grpc.CallOption) (*QueryChainLinkOwnersResponse, error) {
out := new(QueryChainLinkOwnersResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/ChainLinkOwners", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) DefaultExternalAddresses(ctx context.Context, in *QueryDefaultExternalAddressesRequest, opts ...grpc.CallOption) (*QueryDefaultExternalAddressesResponse, error) {
out := new(QueryDefaultExternalAddressesResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/DefaultExternalAddresses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ApplicationLinks(ctx context.Context, in *QueryApplicationLinksRequest, opts ...grpc.CallOption) (*QueryApplicationLinksResponse, error) {
out := new(QueryApplicationLinksResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/ApplicationLinks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ApplicationLinkByClientID(ctx context.Context, in *QueryApplicationLinkByClientIDRequest, opts ...grpc.CallOption) (*QueryApplicationLinkByClientIDResponse, error) {
out := new(QueryApplicationLinkByClientIDResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/ApplicationLinkByClientID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ApplicationLinkOwners(ctx context.Context, in *QueryApplicationLinkOwnersRequest, opts ...grpc.CallOption) (*QueryApplicationLinkOwnersResponse, error) {
out := new(QueryApplicationLinkOwnersResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/ApplicationLinkOwners", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/desmos.profiles.v3.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
// Profile queries the profile of a specific user given their DTag or address.
// If the queried user does not have a profile, the returned response will
// contain a null profile.
Profile(context.Context, *QueryProfileRequest) (*QueryProfileResponse, error)
// IncomingDTagTransferRequests queries all the DTag transfers requests that
// have been made towards the user with the given address
IncomingDTagTransferRequests(context.Context, *QueryIncomingDTagTransferRequestsRequest) (*QueryIncomingDTagTransferRequestsResponse, error)
// ChainLinks queries the chain links associated to the given user, if
// provided. Otherwise it queries all the chain links stored.
ChainLinks(context.Context, *QueryChainLinksRequest) (*QueryChainLinksResponse, error)
// ChainLinkOwners queries for the owners of chain links, optionally searching
// for a specific chain name and external address
ChainLinkOwners(context.Context, *QueryChainLinkOwnersRequest) (*QueryChainLinkOwnersResponse, error)
// DefaultExternalAddresses queries the default addresses associated to the
// given user and (optionally) chain name
DefaultExternalAddresses(context.Context, *QueryDefaultExternalAddressesRequest) (*QueryDefaultExternalAddressesResponse, error)
// ApplicationLinks queries the applications links associated to the given
// user, if provided. Otherwise, it queries all the application links stored.
ApplicationLinks(context.Context, *QueryApplicationLinksRequest) (*QueryApplicationLinksResponse, error)
// ApplicationLinkByClientID queries a single application link for a given
// client id.
ApplicationLinkByClientID(context.Context, *QueryApplicationLinkByClientIDRequest) (*QueryApplicationLinkByClientIDResponse, error)
// ApplicationLinkOwners queries for the owners of applications links,
// optionally searching for a specific application and username.
ApplicationLinkOwners(context.Context, *QueryApplicationLinkOwnersRequest) (*QueryApplicationLinkOwnersResponse, error)
// Params queries the profiles module params
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Profile(ctx context.Context, req *QueryProfileRequest) (*QueryProfileResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Profile not implemented")
}
func (*UnimplementedQueryServer) IncomingDTagTransferRequests(ctx context.Context, req *QueryIncomingDTagTransferRequestsRequest) (*QueryIncomingDTagTransferRequestsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IncomingDTagTransferRequests not implemented")
}
func (*UnimplementedQueryServer) ChainLinks(ctx context.Context, req *QueryChainLinksRequest) (*QueryChainLinksResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ChainLinks not implemented")
}
func (*UnimplementedQueryServer) ChainLinkOwners(ctx context.Context, req *QueryChainLinkOwnersRequest) (*QueryChainLinkOwnersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ChainLinkOwners not implemented")
}
func (*UnimplementedQueryServer) DefaultExternalAddresses(ctx context.Context, req *QueryDefaultExternalAddressesRequest) (*QueryDefaultExternalAddressesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DefaultExternalAddresses not implemented")
}
func (*UnimplementedQueryServer) ApplicationLinks(ctx context.Context, req *QueryApplicationLinksRequest) (*QueryApplicationLinksResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApplicationLinks not implemented")
}
func (*UnimplementedQueryServer) ApplicationLinkByClientID(ctx context.Context, req *QueryApplicationLinkByClientIDRequest) (*QueryApplicationLinkByClientIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApplicationLinkByClientID not implemented")
}
func (*UnimplementedQueryServer) ApplicationLinkOwners(ctx context.Context, req *QueryApplicationLinkOwnersRequest) (*QueryApplicationLinkOwnersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApplicationLinkOwners not implemented")
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Profile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryProfileRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Profile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/Profile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Profile(ctx, req.(*QueryProfileRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_IncomingDTagTransferRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryIncomingDTagTransferRequestsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).IncomingDTagTransferRequests(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/IncomingDTagTransferRequests",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).IncomingDTagTransferRequests(ctx, req.(*QueryIncomingDTagTransferRequestsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ChainLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryChainLinksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ChainLinks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/ChainLinks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ChainLinks(ctx, req.(*QueryChainLinksRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ChainLinkOwners_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryChainLinkOwnersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ChainLinkOwners(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/ChainLinkOwners",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ChainLinkOwners(ctx, req.(*QueryChainLinkOwnersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_DefaultExternalAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryDefaultExternalAddressesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).DefaultExternalAddresses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/DefaultExternalAddresses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).DefaultExternalAddresses(ctx, req.(*QueryDefaultExternalAddressesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ApplicationLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryApplicationLinksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ApplicationLinks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/ApplicationLinks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ApplicationLinks(ctx, req.(*QueryApplicationLinksRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ApplicationLinkByClientID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryApplicationLinkByClientIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ApplicationLinkByClientID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/ApplicationLinkByClientID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ApplicationLinkByClientID(ctx, req.(*QueryApplicationLinkByClientIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ApplicationLinkOwners_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryApplicationLinkOwnersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ApplicationLinkOwners(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/ApplicationLinkOwners",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ApplicationLinkOwners(ctx, req.(*QueryApplicationLinkOwnersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/desmos.profiles.v3.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "desmos.profiles.v3.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Profile",
Handler: _Query_Profile_Handler,
},
{
MethodName: "IncomingDTagTransferRequests",
Handler: _Query_IncomingDTagTransferRequests_Handler,
},
{
MethodName: "ChainLinks",
Handler: _Query_ChainLinks_Handler,
},
{
MethodName: "ChainLinkOwners",
Handler: _Query_ChainLinkOwners_Handler,
},
{
MethodName: "DefaultExternalAddresses",
Handler: _Query_DefaultExternalAddresses_Handler,
},
{
MethodName: "ApplicationLinks",
Handler: _Query_ApplicationLinks_Handler,
},
{
MethodName: "ApplicationLinkByClientID",
Handler: _Query_ApplicationLinkByClientID_Handler,
},
{
MethodName: "ApplicationLinkOwners",
Handler: _Query_ApplicationLinkOwners_Handler,
},
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "desmos/profiles/v3/query.proto",
}