This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmessage_client.go
690 lines (605 loc) · 26.4 KB
/
message_client.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
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
// Code generated by MockGen. DO NOT EDIT.
// Source: ./api/pb/message_grpc.pb.go
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
pb "github.com/tsundata/assistant/api/pb"
grpc "google.golang.org/grpc"
)
// MockMessageSvcClient is a mock of MessageSvcClient interface.
type MockMessageSvcClient struct {
ctrl *gomock.Controller
recorder *MockMessageSvcClientMockRecorder
}
// MockMessageSvcClientMockRecorder is the mock recorder for MockMessageSvcClient.
type MockMessageSvcClientMockRecorder struct {
mock *MockMessageSvcClient
}
// NewMockMessageSvcClient creates a new mock instance.
func NewMockMessageSvcClient(ctrl *gomock.Controller) *MockMessageSvcClient {
mock := &MockMessageSvcClient{ctrl: ctrl}
mock.recorder = &MockMessageSvcClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMessageSvcClient) EXPECT() *MockMessageSvcClientMockRecorder {
return m.recorder
}
// Action mocks base method.
func (m *MockMessageSvcClient) Action(ctx context.Context, in *pb.ActionRequest, opts ...grpc.CallOption) (*pb.ActionReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Action", varargs...)
ret0, _ := ret[0].(*pb.ActionReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Action indicates an expected call of Action.
func (mr *MockMessageSvcClientMockRecorder) Action(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Action", reflect.TypeOf((*MockMessageSvcClient)(nil).Action), varargs...)
}
// Create mocks base method.
func (m *MockMessageSvcClient) Create(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.MessageReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Create", varargs...)
ret0, _ := ret[0].(*pb.MessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create.
func (mr *MockMessageSvcClientMockRecorder) Create(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockMessageSvcClient)(nil).Create), varargs...)
}
// Delete mocks base method.
func (m *MockMessageSvcClient) Delete(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.TextReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Delete", varargs...)
ret0, _ := ret[0].(*pb.TextReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Delete indicates an expected call of Delete.
func (mr *MockMessageSvcClientMockRecorder) Delete(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMessageSvcClient)(nil).Delete), varargs...)
}
// Form mocks base method.
func (m *MockMessageSvcClient) Form(ctx context.Context, in *pb.FormRequest, opts ...grpc.CallOption) (*pb.FormReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Form", varargs...)
ret0, _ := ret[0].(*pb.FormReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Form indicates an expected call of Form.
func (mr *MockMessageSvcClientMockRecorder) Form(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Form", reflect.TypeOf((*MockMessageSvcClient)(nil).Form), varargs...)
}
// GetById mocks base method.
func (m *MockMessageSvcClient) GetById(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.GetMessageReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetById", varargs...)
ret0, _ := ret[0].(*pb.GetMessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetById indicates an expected call of GetById.
func (mr *MockMessageSvcClientMockRecorder) GetById(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetById", reflect.TypeOf((*MockMessageSvcClient)(nil).GetById), varargs...)
}
// GetByIds mocks base method.
func (m *MockMessageSvcClient) GetByIds(ctx context.Context, in *pb.GetMessagesRequest, opts ...grpc.CallOption) (*pb.GetMessagesReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetByIds", varargs...)
ret0, _ := ret[0].(*pb.GetMessagesReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetByIds indicates an expected call of GetByIds.
func (mr *MockMessageSvcClientMockRecorder) GetByIds(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByIds", reflect.TypeOf((*MockMessageSvcClient)(nil).GetByIds), varargs...)
}
// GetBySequence mocks base method.
func (m *MockMessageSvcClient) GetBySequence(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.GetMessageReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetBySequence", varargs...)
ret0, _ := ret[0].(*pb.GetMessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBySequence indicates an expected call of GetBySequence.
func (mr *MockMessageSvcClientMockRecorder) GetBySequence(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBySequence", reflect.TypeOf((*MockMessageSvcClient)(nil).GetBySequence), varargs...)
}
// LastByGroup mocks base method.
func (m *MockMessageSvcClient) LastByGroup(ctx context.Context, in *pb.LastByGroupRequest, opts ...grpc.CallOption) (*pb.LastByGroupReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "LastByGroup", varargs...)
ret0, _ := ret[0].(*pb.LastByGroupReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LastByGroup indicates an expected call of LastByGroup.
func (mr *MockMessageSvcClientMockRecorder) LastByGroup(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastByGroup", reflect.TypeOf((*MockMessageSvcClient)(nil).LastByGroup), varargs...)
}
// LastInbox mocks base method.
func (m *MockMessageSvcClient) LastInbox(ctx context.Context, in *pb.InboxRequest, opts ...grpc.CallOption) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "LastInbox", varargs...)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LastInbox indicates an expected call of LastInbox.
func (mr *MockMessageSvcClientMockRecorder) LastInbox(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastInbox", reflect.TypeOf((*MockMessageSvcClient)(nil).LastInbox), varargs...)
}
// List mocks base method.
func (m *MockMessageSvcClient) List(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.MessagesReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "List", varargs...)
ret0, _ := ret[0].(*pb.MessagesReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List.
func (mr *MockMessageSvcClientMockRecorder) List(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockMessageSvcClient)(nil).List), varargs...)
}
// ListByGroup mocks base method.
func (m *MockMessageSvcClient) ListByGroup(ctx context.Context, in *pb.GetMessagesRequest, opts ...grpc.CallOption) (*pb.GetMessagesReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListByGroup", varargs...)
ret0, _ := ret[0].(*pb.GetMessagesReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListByGroup indicates an expected call of ListByGroup.
func (mr *MockMessageSvcClientMockRecorder) ListByGroup(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByGroup", reflect.TypeOf((*MockMessageSvcClient)(nil).ListByGroup), varargs...)
}
// ListInbox mocks base method.
func (m *MockMessageSvcClient) ListInbox(ctx context.Context, in *pb.InboxRequest, opts ...grpc.CallOption) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "ListInbox", varargs...)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListInbox indicates an expected call of ListInbox.
func (mr *MockMessageSvcClientMockRecorder) ListInbox(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInbox", reflect.TypeOf((*MockMessageSvcClient)(nil).ListInbox), varargs...)
}
// MarkReadInbox mocks base method.
func (m *MockMessageSvcClient) MarkReadInbox(ctx context.Context, in *pb.InboxRequest, opts ...grpc.CallOption) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "MarkReadInbox", varargs...)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarkReadInbox indicates an expected call of MarkReadInbox.
func (mr *MockMessageSvcClientMockRecorder) MarkReadInbox(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkReadInbox", reflect.TypeOf((*MockMessageSvcClient)(nil).MarkReadInbox), varargs...)
}
// MarkSendInbox mocks base method.
func (m *MockMessageSvcClient) MarkSendInbox(ctx context.Context, in *pb.InboxRequest, opts ...grpc.CallOption) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "MarkSendInbox", varargs...)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarkSendInbox indicates an expected call of MarkSendInbox.
func (mr *MockMessageSvcClientMockRecorder) MarkSendInbox(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkSendInbox", reflect.TypeOf((*MockMessageSvcClient)(nil).MarkSendInbox), varargs...)
}
// Run mocks base method.
func (m *MockMessageSvcClient) Run(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.TextReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Run", varargs...)
ret0, _ := ret[0].(*pb.TextReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Run indicates an expected call of Run.
func (mr *MockMessageSvcClientMockRecorder) Run(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockMessageSvcClient)(nil).Run), varargs...)
}
// Save mocks base method.
func (m *MockMessageSvcClient) Save(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.MessageReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Save", varargs...)
ret0, _ := ret[0].(*pb.MessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Save indicates an expected call of Save.
func (mr *MockMessageSvcClientMockRecorder) Save(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Save", reflect.TypeOf((*MockMessageSvcClient)(nil).Save), varargs...)
}
// Send mocks base method.
func (m *MockMessageSvcClient) Send(ctx context.Context, in *pb.MessageRequest, opts ...grpc.CallOption) (*pb.StateReply, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, in}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Send", varargs...)
ret0, _ := ret[0].(*pb.StateReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Send indicates an expected call of Send.
func (mr *MockMessageSvcClientMockRecorder) Send(ctx, in interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, in}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockMessageSvcClient)(nil).Send), varargs...)
}
// MockMessageSvcServer is a mock of MessageSvcServer interface.
type MockMessageSvcServer struct {
ctrl *gomock.Controller
recorder *MockMessageSvcServerMockRecorder
}
// MockMessageSvcServerMockRecorder is the mock recorder for MockMessageSvcServer.
type MockMessageSvcServerMockRecorder struct {
mock *MockMessageSvcServer
}
// NewMockMessageSvcServer creates a new mock instance.
func NewMockMessageSvcServer(ctrl *gomock.Controller) *MockMessageSvcServer {
mock := &MockMessageSvcServer{ctrl: ctrl}
mock.recorder = &MockMessageSvcServerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMessageSvcServer) EXPECT() *MockMessageSvcServerMockRecorder {
return m.recorder
}
// Action mocks base method.
func (m *MockMessageSvcServer) Action(arg0 context.Context, arg1 *pb.ActionRequest) (*pb.ActionReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Action", arg0, arg1)
ret0, _ := ret[0].(*pb.ActionReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Action indicates an expected call of Action.
func (mr *MockMessageSvcServerMockRecorder) Action(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Action", reflect.TypeOf((*MockMessageSvcServer)(nil).Action), arg0, arg1)
}
// Create mocks base method.
func (m *MockMessageSvcServer) Create(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.MessageReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1)
ret0, _ := ret[0].(*pb.MessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create.
func (mr *MockMessageSvcServerMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockMessageSvcServer)(nil).Create), arg0, arg1)
}
// Delete mocks base method.
func (m *MockMessageSvcServer) Delete(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.TextReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
ret0, _ := ret[0].(*pb.TextReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Delete indicates an expected call of Delete.
func (mr *MockMessageSvcServerMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMessageSvcServer)(nil).Delete), arg0, arg1)
}
// Form mocks base method.
func (m *MockMessageSvcServer) Form(arg0 context.Context, arg1 *pb.FormRequest) (*pb.FormReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Form", arg0, arg1)
ret0, _ := ret[0].(*pb.FormReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Form indicates an expected call of Form.
func (mr *MockMessageSvcServerMockRecorder) Form(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Form", reflect.TypeOf((*MockMessageSvcServer)(nil).Form), arg0, arg1)
}
// GetById mocks base method.
func (m *MockMessageSvcServer) GetById(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.GetMessageReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetById", arg0, arg1)
ret0, _ := ret[0].(*pb.GetMessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetById indicates an expected call of GetById.
func (mr *MockMessageSvcServerMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetById", reflect.TypeOf((*MockMessageSvcServer)(nil).GetById), arg0, arg1)
}
// GetByIds mocks base method.
func (m *MockMessageSvcServer) GetByIds(arg0 context.Context, arg1 *pb.GetMessagesRequest) (*pb.GetMessagesReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetByIds", arg0, arg1)
ret0, _ := ret[0].(*pb.GetMessagesReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetByIds indicates an expected call of GetByIds.
func (mr *MockMessageSvcServerMockRecorder) GetByIds(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByIds", reflect.TypeOf((*MockMessageSvcServer)(nil).GetByIds), arg0, arg1)
}
// GetBySequence mocks base method.
func (m *MockMessageSvcServer) GetBySequence(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.GetMessageReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBySequence", arg0, arg1)
ret0, _ := ret[0].(*pb.GetMessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBySequence indicates an expected call of GetBySequence.
func (mr *MockMessageSvcServerMockRecorder) GetBySequence(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBySequence", reflect.TypeOf((*MockMessageSvcServer)(nil).GetBySequence), arg0, arg1)
}
// LastByGroup mocks base method.
func (m *MockMessageSvcServer) LastByGroup(arg0 context.Context, arg1 *pb.LastByGroupRequest) (*pb.LastByGroupReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LastByGroup", arg0, arg1)
ret0, _ := ret[0].(*pb.LastByGroupReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LastByGroup indicates an expected call of LastByGroup.
func (mr *MockMessageSvcServerMockRecorder) LastByGroup(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastByGroup", reflect.TypeOf((*MockMessageSvcServer)(nil).LastByGroup), arg0, arg1)
}
// LastInbox mocks base method.
func (m *MockMessageSvcServer) LastInbox(arg0 context.Context, arg1 *pb.InboxRequest) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LastInbox", arg0, arg1)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LastInbox indicates an expected call of LastInbox.
func (mr *MockMessageSvcServerMockRecorder) LastInbox(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastInbox", reflect.TypeOf((*MockMessageSvcServer)(nil).LastInbox), arg0, arg1)
}
// List mocks base method.
func (m *MockMessageSvcServer) List(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.MessagesReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", arg0, arg1)
ret0, _ := ret[0].(*pb.MessagesReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List.
func (mr *MockMessageSvcServerMockRecorder) List(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockMessageSvcServer)(nil).List), arg0, arg1)
}
// ListByGroup mocks base method.
func (m *MockMessageSvcServer) ListByGroup(arg0 context.Context, arg1 *pb.GetMessagesRequest) (*pb.GetMessagesReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListByGroup", arg0, arg1)
ret0, _ := ret[0].(*pb.GetMessagesReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListByGroup indicates an expected call of ListByGroup.
func (mr *MockMessageSvcServerMockRecorder) ListByGroup(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByGroup", reflect.TypeOf((*MockMessageSvcServer)(nil).ListByGroup), arg0, arg1)
}
// ListInbox mocks base method.
func (m *MockMessageSvcServer) ListInbox(arg0 context.Context, arg1 *pb.InboxRequest) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListInbox", arg0, arg1)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListInbox indicates an expected call of ListInbox.
func (mr *MockMessageSvcServerMockRecorder) ListInbox(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInbox", reflect.TypeOf((*MockMessageSvcServer)(nil).ListInbox), arg0, arg1)
}
// MarkReadInbox mocks base method.
func (m *MockMessageSvcServer) MarkReadInbox(arg0 context.Context, arg1 *pb.InboxRequest) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarkReadInbox", arg0, arg1)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarkReadInbox indicates an expected call of MarkReadInbox.
func (mr *MockMessageSvcServerMockRecorder) MarkReadInbox(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkReadInbox", reflect.TypeOf((*MockMessageSvcServer)(nil).MarkReadInbox), arg0, arg1)
}
// MarkSendInbox mocks base method.
func (m *MockMessageSvcServer) MarkSendInbox(arg0 context.Context, arg1 *pb.InboxRequest) (*pb.InboxReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarkSendInbox", arg0, arg1)
ret0, _ := ret[0].(*pb.InboxReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarkSendInbox indicates an expected call of MarkSendInbox.
func (mr *MockMessageSvcServerMockRecorder) MarkSendInbox(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkSendInbox", reflect.TypeOf((*MockMessageSvcServer)(nil).MarkSendInbox), arg0, arg1)
}
// Run mocks base method.
func (m *MockMessageSvcServer) Run(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.TextReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", arg0, arg1)
ret0, _ := ret[0].(*pb.TextReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Run indicates an expected call of Run.
func (mr *MockMessageSvcServerMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockMessageSvcServer)(nil).Run), arg0, arg1)
}
// Save mocks base method.
func (m *MockMessageSvcServer) Save(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.MessageReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Save", arg0, arg1)
ret0, _ := ret[0].(*pb.MessageReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Save indicates an expected call of Save.
func (mr *MockMessageSvcServerMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Save", reflect.TypeOf((*MockMessageSvcServer)(nil).Save), arg0, arg1)
}
// Send mocks base method.
func (m *MockMessageSvcServer) Send(arg0 context.Context, arg1 *pb.MessageRequest) (*pb.StateReply, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Send", arg0, arg1)
ret0, _ := ret[0].(*pb.StateReply)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Send indicates an expected call of Send.
func (mr *MockMessageSvcServerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockMessageSvcServer)(nil).Send), arg0, arg1)
}
// MockUnsafeMessageSvcServer is a mock of UnsafeMessageSvcServer interface.
type MockUnsafeMessageSvcServer struct {
ctrl *gomock.Controller
recorder *MockUnsafeMessageSvcServerMockRecorder
}
// MockUnsafeMessageSvcServerMockRecorder is the mock recorder for MockUnsafeMessageSvcServer.
type MockUnsafeMessageSvcServerMockRecorder struct {
mock *MockUnsafeMessageSvcServer
}
// NewMockUnsafeMessageSvcServer creates a new mock instance.
func NewMockUnsafeMessageSvcServer(ctrl *gomock.Controller) *MockUnsafeMessageSvcServer {
mock := &MockUnsafeMessageSvcServer{ctrl: ctrl}
mock.recorder = &MockUnsafeMessageSvcServerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockUnsafeMessageSvcServer) EXPECT() *MockUnsafeMessageSvcServerMockRecorder {
return m.recorder
}
// mustEmbedUnimplementedMessageSvcServer mocks base method.
func (m *MockUnsafeMessageSvcServer) mustEmbedUnimplementedMessageSvcServer() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "mustEmbedUnimplementedMessageSvcServer")
}
// mustEmbedUnimplementedMessageSvcServer indicates an expected call of mustEmbedUnimplementedMessageSvcServer.
func (mr *MockUnsafeMessageSvcServerMockRecorder) mustEmbedUnimplementedMessageSvcServer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedMessageSvcServer", reflect.TypeOf((*MockUnsafeMessageSvcServer)(nil).mustEmbedUnimplementedMessageSvcServer))
}