-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
onebot_frame.pb.go
2930 lines (2595 loc) · 141 KB
/
onebot_frame.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
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
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.0
// protoc v4.22.2
// source: onebot_frame.proto
package onebot
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Frame_FrameType int32
const (
Frame_TUNKNOWN Frame_FrameType = 0
Frame_TPrivateMessageEvent Frame_FrameType = 101
Frame_TGroupMessageEvent Frame_FrameType = 102
Frame_TGroupUploadNoticeEvent Frame_FrameType = 103
Frame_TGroupAdminNoticeEvent Frame_FrameType = 104
Frame_TGroupDecreaseNoticeEvent Frame_FrameType = 105
Frame_TGroupIncreaseNoticeEvent Frame_FrameType = 106
Frame_TGroupBanNoticeEvent Frame_FrameType = 107
Frame_TFriendAddNoticeEvent Frame_FrameType = 108
Frame_TGroupRecallNoticeEvent Frame_FrameType = 109
Frame_TFriendRecallNoticeEvent Frame_FrameType = 110
Frame_TFriendRequestEvent Frame_FrameType = 111
Frame_TGroupRequestEvent Frame_FrameType = 112
Frame_TGroupTempMessageEvent Frame_FrameType = 113
Frame_TGroupNotifyEvent Frame_FrameType = 114
Frame_TChannelMessageEvent Frame_FrameType = 115
Frame_TSendPrivateMsgReq Frame_FrameType = 201
Frame_TSendGroupMsgReq Frame_FrameType = 202
Frame_TSendMsgReq Frame_FrameType = 203
Frame_TDeleteMsgReq Frame_FrameType = 204
Frame_TGetMsgReq Frame_FrameType = 205
Frame_TGetForwardMsgReq Frame_FrameType = 206
Frame_TSendLikeReq Frame_FrameType = 207
Frame_TSetGroupKickReq Frame_FrameType = 208
Frame_TSetGroupBanReq Frame_FrameType = 209
Frame_TSetGroupAnonymousReq Frame_FrameType = 210
Frame_TSetGroupWholeBanReq Frame_FrameType = 211
Frame_TSetGroupAdminReq Frame_FrameType = 212
Frame_TSetGroupAnonymousBanReq Frame_FrameType = 213
Frame_TSetGroupCardReq Frame_FrameType = 214
Frame_TSetGroupNameReq Frame_FrameType = 215
Frame_TSetGroupLeaveReq Frame_FrameType = 216
Frame_TSetGroupSpecialTitleReq Frame_FrameType = 217
Frame_TSetFriendAddRequestReq Frame_FrameType = 218
Frame_TSetGroupAddRequestReq Frame_FrameType = 219
Frame_TGetLoginInfoReq Frame_FrameType = 220
Frame_TGetStrangerInfoReq Frame_FrameType = 221
Frame_TGetFriendListReq Frame_FrameType = 222
Frame_TGetGroupInfoReq Frame_FrameType = 223
Frame_TGetGroupListReq Frame_FrameType = 224
Frame_TGetGroupMemberInfoReq Frame_FrameType = 225
Frame_TGetGroupMemberListReq Frame_FrameType = 226
Frame_TGetGroupHonorInfoReq Frame_FrameType = 227
Frame_TGetCookiesReq Frame_FrameType = 228
Frame_TGetCsrfTokenReq Frame_FrameType = 229
Frame_TGetCredentialsReq Frame_FrameType = 230
Frame_TGetRecordReq Frame_FrameType = 231
Frame_TGetImageReq Frame_FrameType = 232
Frame_TCanSendImageReq Frame_FrameType = 233
Frame_TCanSendRecordReq Frame_FrameType = 234
Frame_TGetStatusReq Frame_FrameType = 235
Frame_TGetVersionInfoReq Frame_FrameType = 236
Frame_TSetRestartReq Frame_FrameType = 237
Frame_TCleanCacheReq Frame_FrameType = 238
Frame_TSetGroupSignInReq Frame_FrameType = 239
Frame_TSendMusicReq Frame_FrameType = 240
Frame_TSendGroupPokeReq Frame_FrameType = 241
Frame_TSendFriendPokeReq Frame_FrameType = 242
Frame_TSendChannelMsgReq Frame_FrameType = 243
Frame_TSendPrivateMsgResp Frame_FrameType = 301
Frame_TSendGroupMsgResp Frame_FrameType = 302
Frame_TSendMsgResp Frame_FrameType = 303
Frame_TDeleteMsgResp Frame_FrameType = 304
Frame_TGetMsgResp Frame_FrameType = 305
Frame_TGetForwardMsgResp Frame_FrameType = 306
Frame_TSendLikeResp Frame_FrameType = 307
Frame_TSetGroupKickResp Frame_FrameType = 308
Frame_TSetGroupBanResp Frame_FrameType = 309
Frame_TSetGroupAnonymousResp Frame_FrameType = 310
Frame_TSetGroupWholeBanResp Frame_FrameType = 311
Frame_TSetGroupAdminResp Frame_FrameType = 312
Frame_TSetGroupAnonymousBanResp Frame_FrameType = 313
Frame_TSetGroupCardResp Frame_FrameType = 314
Frame_TSetGroupNameResp Frame_FrameType = 315
Frame_TSetGroupLeaveResp Frame_FrameType = 316
Frame_TSetGroupSpecialTitleResp Frame_FrameType = 317
Frame_TSetFriendAddRequestResp Frame_FrameType = 318
Frame_TSetGroupAddRequestResp Frame_FrameType = 319
Frame_TGetLoginInfoResp Frame_FrameType = 320
Frame_TGetStrangerInfoResp Frame_FrameType = 321
Frame_TGetFriendListResp Frame_FrameType = 322
Frame_TGetGroupInfoResp Frame_FrameType = 323
Frame_TGetGroupListResp Frame_FrameType = 324
Frame_TGetGroupMemberInfoResp Frame_FrameType = 325
Frame_TGetGroupMemberListResp Frame_FrameType = 326
Frame_TGetGroupHonorInfoResp Frame_FrameType = 327
Frame_TGetCookiesResp Frame_FrameType = 328
Frame_TGetCsrfTokenResp Frame_FrameType = 329
Frame_TGetCredentialsResp Frame_FrameType = 330
Frame_TGetRecordResp Frame_FrameType = 331
Frame_TGetImageResp Frame_FrameType = 332
Frame_TCanSendImageResp Frame_FrameType = 333
Frame_TCanSendRecordResp Frame_FrameType = 334
Frame_TGetStatusResp Frame_FrameType = 335
Frame_TGetVersionInfoResp Frame_FrameType = 336
Frame_TSetRestartResp Frame_FrameType = 337
Frame_TCleanCacheResp Frame_FrameType = 338
Frame_TSetGroupSignInResp Frame_FrameType = 339
Frame_TSendMusicResp Frame_FrameType = 340
Frame_TSendGroupPokeResp Frame_FrameType = 341
Frame_TSendFriendPokeResp Frame_FrameType = 342
Frame_TSendChannelMsgResp Frame_FrameType = 343
)
// Enum value maps for Frame_FrameType.
var (
Frame_FrameType_name = map[int32]string{
0: "TUNKNOWN",
101: "TPrivateMessageEvent",
102: "TGroupMessageEvent",
103: "TGroupUploadNoticeEvent",
104: "TGroupAdminNoticeEvent",
105: "TGroupDecreaseNoticeEvent",
106: "TGroupIncreaseNoticeEvent",
107: "TGroupBanNoticeEvent",
108: "TFriendAddNoticeEvent",
109: "TGroupRecallNoticeEvent",
110: "TFriendRecallNoticeEvent",
111: "TFriendRequestEvent",
112: "TGroupRequestEvent",
113: "TGroupTempMessageEvent",
114: "TGroupNotifyEvent",
115: "TChannelMessageEvent",
201: "TSendPrivateMsgReq",
202: "TSendGroupMsgReq",
203: "TSendMsgReq",
204: "TDeleteMsgReq",
205: "TGetMsgReq",
206: "TGetForwardMsgReq",
207: "TSendLikeReq",
208: "TSetGroupKickReq",
209: "TSetGroupBanReq",
210: "TSetGroupAnonymousReq",
211: "TSetGroupWholeBanReq",
212: "TSetGroupAdminReq",
213: "TSetGroupAnonymousBanReq",
214: "TSetGroupCardReq",
215: "TSetGroupNameReq",
216: "TSetGroupLeaveReq",
217: "TSetGroupSpecialTitleReq",
218: "TSetFriendAddRequestReq",
219: "TSetGroupAddRequestReq",
220: "TGetLoginInfoReq",
221: "TGetStrangerInfoReq",
222: "TGetFriendListReq",
223: "TGetGroupInfoReq",
224: "TGetGroupListReq",
225: "TGetGroupMemberInfoReq",
226: "TGetGroupMemberListReq",
227: "TGetGroupHonorInfoReq",
228: "TGetCookiesReq",
229: "TGetCsrfTokenReq",
230: "TGetCredentialsReq",
231: "TGetRecordReq",
232: "TGetImageReq",
233: "TCanSendImageReq",
234: "TCanSendRecordReq",
235: "TGetStatusReq",
236: "TGetVersionInfoReq",
237: "TSetRestartReq",
238: "TCleanCacheReq",
239: "TSetGroupSignInReq",
240: "TSendMusicReq",
241: "TSendGroupPokeReq",
242: "TSendFriendPokeReq",
243: "TSendChannelMsgReq",
301: "TSendPrivateMsgResp",
302: "TSendGroupMsgResp",
303: "TSendMsgResp",
304: "TDeleteMsgResp",
305: "TGetMsgResp",
306: "TGetForwardMsgResp",
307: "TSendLikeResp",
308: "TSetGroupKickResp",
309: "TSetGroupBanResp",
310: "TSetGroupAnonymousResp",
311: "TSetGroupWholeBanResp",
312: "TSetGroupAdminResp",
313: "TSetGroupAnonymousBanResp",
314: "TSetGroupCardResp",
315: "TSetGroupNameResp",
316: "TSetGroupLeaveResp",
317: "TSetGroupSpecialTitleResp",
318: "TSetFriendAddRequestResp",
319: "TSetGroupAddRequestResp",
320: "TGetLoginInfoResp",
321: "TGetStrangerInfoResp",
322: "TGetFriendListResp",
323: "TGetGroupInfoResp",
324: "TGetGroupListResp",
325: "TGetGroupMemberInfoResp",
326: "TGetGroupMemberListResp",
327: "TGetGroupHonorInfoResp",
328: "TGetCookiesResp",
329: "TGetCsrfTokenResp",
330: "TGetCredentialsResp",
331: "TGetRecordResp",
332: "TGetImageResp",
333: "TCanSendImageResp",
334: "TCanSendRecordResp",
335: "TGetStatusResp",
336: "TGetVersionInfoResp",
337: "TSetRestartResp",
338: "TCleanCacheResp",
339: "TSetGroupSignInResp",
340: "TSendMusicResp",
341: "TSendGroupPokeResp",
342: "TSendFriendPokeResp",
343: "TSendChannelMsgResp",
}
Frame_FrameType_value = map[string]int32{
"TUNKNOWN": 0,
"TPrivateMessageEvent": 101,
"TGroupMessageEvent": 102,
"TGroupUploadNoticeEvent": 103,
"TGroupAdminNoticeEvent": 104,
"TGroupDecreaseNoticeEvent": 105,
"TGroupIncreaseNoticeEvent": 106,
"TGroupBanNoticeEvent": 107,
"TFriendAddNoticeEvent": 108,
"TGroupRecallNoticeEvent": 109,
"TFriendRecallNoticeEvent": 110,
"TFriendRequestEvent": 111,
"TGroupRequestEvent": 112,
"TGroupTempMessageEvent": 113,
"TGroupNotifyEvent": 114,
"TChannelMessageEvent": 115,
"TSendPrivateMsgReq": 201,
"TSendGroupMsgReq": 202,
"TSendMsgReq": 203,
"TDeleteMsgReq": 204,
"TGetMsgReq": 205,
"TGetForwardMsgReq": 206,
"TSendLikeReq": 207,
"TSetGroupKickReq": 208,
"TSetGroupBanReq": 209,
"TSetGroupAnonymousReq": 210,
"TSetGroupWholeBanReq": 211,
"TSetGroupAdminReq": 212,
"TSetGroupAnonymousBanReq": 213,
"TSetGroupCardReq": 214,
"TSetGroupNameReq": 215,
"TSetGroupLeaveReq": 216,
"TSetGroupSpecialTitleReq": 217,
"TSetFriendAddRequestReq": 218,
"TSetGroupAddRequestReq": 219,
"TGetLoginInfoReq": 220,
"TGetStrangerInfoReq": 221,
"TGetFriendListReq": 222,
"TGetGroupInfoReq": 223,
"TGetGroupListReq": 224,
"TGetGroupMemberInfoReq": 225,
"TGetGroupMemberListReq": 226,
"TGetGroupHonorInfoReq": 227,
"TGetCookiesReq": 228,
"TGetCsrfTokenReq": 229,
"TGetCredentialsReq": 230,
"TGetRecordReq": 231,
"TGetImageReq": 232,
"TCanSendImageReq": 233,
"TCanSendRecordReq": 234,
"TGetStatusReq": 235,
"TGetVersionInfoReq": 236,
"TSetRestartReq": 237,
"TCleanCacheReq": 238,
"TSetGroupSignInReq": 239,
"TSendMusicReq": 240,
"TSendGroupPokeReq": 241,
"TSendFriendPokeReq": 242,
"TSendChannelMsgReq": 243,
"TSendPrivateMsgResp": 301,
"TSendGroupMsgResp": 302,
"TSendMsgResp": 303,
"TDeleteMsgResp": 304,
"TGetMsgResp": 305,
"TGetForwardMsgResp": 306,
"TSendLikeResp": 307,
"TSetGroupKickResp": 308,
"TSetGroupBanResp": 309,
"TSetGroupAnonymousResp": 310,
"TSetGroupWholeBanResp": 311,
"TSetGroupAdminResp": 312,
"TSetGroupAnonymousBanResp": 313,
"TSetGroupCardResp": 314,
"TSetGroupNameResp": 315,
"TSetGroupLeaveResp": 316,
"TSetGroupSpecialTitleResp": 317,
"TSetFriendAddRequestResp": 318,
"TSetGroupAddRequestResp": 319,
"TGetLoginInfoResp": 320,
"TGetStrangerInfoResp": 321,
"TGetFriendListResp": 322,
"TGetGroupInfoResp": 323,
"TGetGroupListResp": 324,
"TGetGroupMemberInfoResp": 325,
"TGetGroupMemberListResp": 326,
"TGetGroupHonorInfoResp": 327,
"TGetCookiesResp": 328,
"TGetCsrfTokenResp": 329,
"TGetCredentialsResp": 330,
"TGetRecordResp": 331,
"TGetImageResp": 332,
"TCanSendImageResp": 333,
"TCanSendRecordResp": 334,
"TGetStatusResp": 335,
"TGetVersionInfoResp": 336,
"TSetRestartResp": 337,
"TCleanCacheResp": 338,
"TSetGroupSignInResp": 339,
"TSendMusicResp": 340,
"TSendGroupPokeResp": 341,
"TSendFriendPokeResp": 342,
"TSendChannelMsgResp": 343,
}
)
func (x Frame_FrameType) Enum() *Frame_FrameType {
p := new(Frame_FrameType)
*p = x
return p
}
func (x Frame_FrameType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Frame_FrameType) Descriptor() protoreflect.EnumDescriptor {
return file_onebot_frame_proto_enumTypes[0].Descriptor()
}
func (Frame_FrameType) Type() protoreflect.EnumType {
return &file_onebot_frame_proto_enumTypes[0]
}
func (x Frame_FrameType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Frame_FrameType.Descriptor instead.
func (Frame_FrameType) EnumDescriptor() ([]byte, []int) {
return file_onebot_frame_proto_rawDescGZIP(), []int{0, 0}
}
type Frame struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
BotId int64 `protobuf:"varint,1,opt,name=bot_id,json=botId,proto3" json:"bot_id,omitempty"`
FrameType Frame_FrameType `protobuf:"varint,2,opt,name=frame_type,json=frameType,proto3,enum=onebot.Frame_FrameType" json:"frame_type,omitempty"`
Echo string `protobuf:"bytes,3,opt,name=echo,proto3" json:"echo,omitempty"`
Ok bool `protobuf:"varint,4,opt,name=ok,proto3" json:"ok,omitempty"` // 是否正常 (API resp)
Extra map[string]string `protobuf:"bytes,100,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Types that are assignable to Data:
//
// *Frame_PrivateMessageEvent
// *Frame_GroupMessageEvent
// *Frame_GroupUploadNoticeEvent
// *Frame_GroupAdminNoticeEvent
// *Frame_GroupDecreaseNoticeEvent
// *Frame_GroupIncreaseNoticeEvent
// *Frame_GroupBanNoticeEvent
// *Frame_FriendAddNoticeEvent
// *Frame_GroupRecallNoticeEvent
// *Frame_FriendRecallNoticeEvent
// *Frame_FriendRequestEvent
// *Frame_GroupRequestEvent
// *Frame_GroupTempMessageEvent
// *Frame_GroupNotifyEvent
// *Frame_ChannelMessageEvent
// *Frame_SendPrivateMsgReq
// *Frame_SendGroupMsgReq
// *Frame_SendMsgReq
// *Frame_DeleteMsgReq
// *Frame_GetMsgReq
// *Frame_GetForwardMsgReq
// *Frame_SendLikeReq
// *Frame_SetGroupKickReq
// *Frame_SetGroupBanReq
// *Frame_SetGroupAnonymousBanReq
// *Frame_SetGroupWholeBanReq
// *Frame_SetGroupAdminReq
// *Frame_SetGroupAnonymousReq
// *Frame_SetGroupCardReq
// *Frame_SetGroupNameReq
// *Frame_SetGroupLeaveReq
// *Frame_SetGroupSpecialTitleReq
// *Frame_SetFriendAddRequestReq
// *Frame_SetGroupAddRequestReq
// *Frame_GetLoginInfoReq
// *Frame_GetStrangerInfoReq
// *Frame_GetFriendListReq
// *Frame_GetGroupInfoReq
// *Frame_GetGroupListReq
// *Frame_GetGroupMemberInfoReq
// *Frame_GetGroupMemberListReq
// *Frame_GetGroupHonorInfoReq
// *Frame_GetCookiesReq
// *Frame_GetCsrfTokenReq
// *Frame_GetCredentialsReq
// *Frame_GetRecordReq
// *Frame_GetImageReq
// *Frame_CanSendImageReq
// *Frame_CanSendRecordReq
// *Frame_GetStatusReq
// *Frame_GetVersionInfoReq
// *Frame_SetRestartReq
// *Frame_CleanCacheReq
// *Frame_SetGroupSignInReq
// *Frame_SendMusicReq
// *Frame_SendGroupPokeReq
// *Frame_SendFriendPokeReq
// *Frame_SendChannelMsgReq
// *Frame_SendPrivateMsgResp
// *Frame_SendGroupMsgResp
// *Frame_SendMsgResp
// *Frame_DeleteMsgResp
// *Frame_GetMsgResp
// *Frame_GetForwardMsgResp
// *Frame_SendLikeResp
// *Frame_SetGroupKickResp
// *Frame_SetGroupBanResp
// *Frame_SetGroupAnonymousBanResp
// *Frame_SetGroupWholeBanResp
// *Frame_SetGroupAdminResp
// *Frame_SetGroupAnonymousResp
// *Frame_SetGroupCardResp
// *Frame_SetGroupNameResp
// *Frame_SetGroupLeaveResp
// *Frame_SetGroupSpecialTitleResp
// *Frame_SetFriendAddRequestResp
// *Frame_SetGroupAddRequestResp
// *Frame_GetLoginInfoResp
// *Frame_GetStrangerInfoResp
// *Frame_GetFriendListResp
// *Frame_GetGroupInfoResp
// *Frame_GetGroupListResp
// *Frame_GetGroupMemberInfoResp
// *Frame_GetGroupMemberListResp
// *Frame_GetGroupHonorInfoResp
// *Frame_GetCookiesResp
// *Frame_GetCsrfTokenResp
// *Frame_GetCredentialsResp
// *Frame_GetRecordResp
// *Frame_GetImageResp
// *Frame_CanSendImageResp
// *Frame_CanSendRecordResp
// *Frame_GetStatusResp
// *Frame_GetVersionInfoResp
// *Frame_SetRestartResp
// *Frame_CleanCacheResp
// *Frame_SetGroupSignInResp
// *Frame_SendMusicResp
// *Frame_SendGroupPokeResp
// *Frame_SendFriendPokeResp
// *Frame_SendChannelMsgResp
Data isFrame_Data `protobuf_oneof:"data"`
}
func (x *Frame) Reset() {
*x = Frame{}
if protoimpl.UnsafeEnabled {
mi := &file_onebot_frame_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Frame) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Frame) ProtoMessage() {}
func (x *Frame) ProtoReflect() protoreflect.Message {
mi := &file_onebot_frame_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Frame.ProtoReflect.Descriptor instead.
func (*Frame) Descriptor() ([]byte, []int) {
return file_onebot_frame_proto_rawDescGZIP(), []int{0}
}
func (x *Frame) GetBotId() int64 {
if x != nil {
return x.BotId
}
return 0
}
func (x *Frame) GetFrameType() Frame_FrameType {
if x != nil {
return x.FrameType
}
return Frame_TUNKNOWN
}
func (x *Frame) GetEcho() string {
if x != nil {
return x.Echo
}
return ""
}
func (x *Frame) GetOk() bool {
if x != nil {
return x.Ok
}
return false
}
func (x *Frame) GetExtra() map[string]string {
if x != nil {
return x.Extra
}
return nil
}
func (m *Frame) GetData() isFrame_Data {
if m != nil {
return m.Data
}
return nil
}
func (x *Frame) GetPrivateMessageEvent() *PrivateMessageEvent {
if x, ok := x.GetData().(*Frame_PrivateMessageEvent); ok {
return x.PrivateMessageEvent
}
return nil
}
func (x *Frame) GetGroupMessageEvent() *GroupMessageEvent {
if x, ok := x.GetData().(*Frame_GroupMessageEvent); ok {
return x.GroupMessageEvent
}
return nil
}
func (x *Frame) GetGroupUploadNoticeEvent() *GroupUploadNoticeEvent {
if x, ok := x.GetData().(*Frame_GroupUploadNoticeEvent); ok {
return x.GroupUploadNoticeEvent
}
return nil
}
func (x *Frame) GetGroupAdminNoticeEvent() *GroupAdminNoticeEvent {
if x, ok := x.GetData().(*Frame_GroupAdminNoticeEvent); ok {
return x.GroupAdminNoticeEvent
}
return nil
}
func (x *Frame) GetGroupDecreaseNoticeEvent() *GroupDecreaseNoticeEvent {
if x, ok := x.GetData().(*Frame_GroupDecreaseNoticeEvent); ok {
return x.GroupDecreaseNoticeEvent
}
return nil
}
func (x *Frame) GetGroupIncreaseNoticeEvent() *GroupIncreaseNoticeEvent {
if x, ok := x.GetData().(*Frame_GroupIncreaseNoticeEvent); ok {
return x.GroupIncreaseNoticeEvent
}
return nil
}
func (x *Frame) GetGroupBanNoticeEvent() *GroupBanNoticeEvent {
if x, ok := x.GetData().(*Frame_GroupBanNoticeEvent); ok {
return x.GroupBanNoticeEvent
}
return nil
}
func (x *Frame) GetFriendAddNoticeEvent() *FriendAddNoticeEvent {
if x, ok := x.GetData().(*Frame_FriendAddNoticeEvent); ok {
return x.FriendAddNoticeEvent
}
return nil
}
func (x *Frame) GetGroupRecallNoticeEvent() *GroupRecallNoticeEvent {
if x, ok := x.GetData().(*Frame_GroupRecallNoticeEvent); ok {
return x.GroupRecallNoticeEvent
}
return nil
}
func (x *Frame) GetFriendRecallNoticeEvent() *FriendRecallNoticeEvent {
if x, ok := x.GetData().(*Frame_FriendRecallNoticeEvent); ok {
return x.FriendRecallNoticeEvent
}
return nil
}
func (x *Frame) GetFriendRequestEvent() *FriendRequestEvent {
if x, ok := x.GetData().(*Frame_FriendRequestEvent); ok {
return x.FriendRequestEvent
}
return nil
}
func (x *Frame) GetGroupRequestEvent() *GroupRequestEvent {
if x, ok := x.GetData().(*Frame_GroupRequestEvent); ok {
return x.GroupRequestEvent
}
return nil
}
func (x *Frame) GetGroupTempMessageEvent() *GroupTempMessageEvent {
if x, ok := x.GetData().(*Frame_GroupTempMessageEvent); ok {
return x.GroupTempMessageEvent
}
return nil
}
func (x *Frame) GetGroupNotifyEvent() *GroupNotifyEvent {
if x, ok := x.GetData().(*Frame_GroupNotifyEvent); ok {
return x.GroupNotifyEvent
}
return nil
}
func (x *Frame) GetChannelMessageEvent() *ChannelMessageEvent {
if x, ok := x.GetData().(*Frame_ChannelMessageEvent); ok {
return x.ChannelMessageEvent
}
return nil
}
func (x *Frame) GetSendPrivateMsgReq() *SendPrivateMsgReq {
if x, ok := x.GetData().(*Frame_SendPrivateMsgReq); ok {
return x.SendPrivateMsgReq
}
return nil
}
func (x *Frame) GetSendGroupMsgReq() *SendGroupMsgReq {
if x, ok := x.GetData().(*Frame_SendGroupMsgReq); ok {
return x.SendGroupMsgReq
}
return nil
}
func (x *Frame) GetSendMsgReq() *SendMsgReq {
if x, ok := x.GetData().(*Frame_SendMsgReq); ok {
return x.SendMsgReq
}
return nil
}
func (x *Frame) GetDeleteMsgReq() *DeleteMsgReq {
if x, ok := x.GetData().(*Frame_DeleteMsgReq); ok {
return x.DeleteMsgReq
}
return nil
}
func (x *Frame) GetGetMsgReq() *GetMsgReq {
if x, ok := x.GetData().(*Frame_GetMsgReq); ok {
return x.GetMsgReq
}
return nil
}
func (x *Frame) GetGetForwardMsgReq() *GetForwardMsgReq {
if x, ok := x.GetData().(*Frame_GetForwardMsgReq); ok {
return x.GetForwardMsgReq
}
return nil
}
func (x *Frame) GetSendLikeReq() *SendLikeReq {
if x, ok := x.GetData().(*Frame_SendLikeReq); ok {
return x.SendLikeReq
}
return nil
}
func (x *Frame) GetSetGroupKickReq() *SetGroupKickReq {
if x, ok := x.GetData().(*Frame_SetGroupKickReq); ok {
return x.SetGroupKickReq
}
return nil
}
func (x *Frame) GetSetGroupBanReq() *SetGroupBanReq {
if x, ok := x.GetData().(*Frame_SetGroupBanReq); ok {
return x.SetGroupBanReq
}
return nil
}
func (x *Frame) GetSetGroupAnonymousBanReq() *SetGroupAnonymousBanReq {
if x, ok := x.GetData().(*Frame_SetGroupAnonymousBanReq); ok {
return x.SetGroupAnonymousBanReq
}
return nil
}
func (x *Frame) GetSetGroupWholeBanReq() *SetGroupWholeBanReq {
if x, ok := x.GetData().(*Frame_SetGroupWholeBanReq); ok {
return x.SetGroupWholeBanReq
}
return nil
}
func (x *Frame) GetSetGroupAdminReq() *SetGroupAdminReq {
if x, ok := x.GetData().(*Frame_SetGroupAdminReq); ok {
return x.SetGroupAdminReq
}
return nil
}
func (x *Frame) GetSetGroupAnonymousReq() *SetGroupAnonymousReq {
if x, ok := x.GetData().(*Frame_SetGroupAnonymousReq); ok {
return x.SetGroupAnonymousReq
}
return nil
}
func (x *Frame) GetSetGroupCardReq() *SetGroupCardReq {
if x, ok := x.GetData().(*Frame_SetGroupCardReq); ok {
return x.SetGroupCardReq
}
return nil
}
func (x *Frame) GetSetGroupNameReq() *SetGroupNameReq {
if x, ok := x.GetData().(*Frame_SetGroupNameReq); ok {
return x.SetGroupNameReq
}
return nil
}
func (x *Frame) GetSetGroupLeaveReq() *SetGroupLeaveReq {
if x, ok := x.GetData().(*Frame_SetGroupLeaveReq); ok {
return x.SetGroupLeaveReq
}
return nil
}
func (x *Frame) GetSetGroupSpecialTitleReq() *SetGroupSpecialTitleReq {
if x, ok := x.GetData().(*Frame_SetGroupSpecialTitleReq); ok {
return x.SetGroupSpecialTitleReq
}
return nil
}
func (x *Frame) GetSetFriendAddRequestReq() *SetFriendAddRequestReq {
if x, ok := x.GetData().(*Frame_SetFriendAddRequestReq); ok {
return x.SetFriendAddRequestReq
}
return nil
}
func (x *Frame) GetSetGroupAddRequestReq() *SetGroupAddRequestReq {
if x, ok := x.GetData().(*Frame_SetGroupAddRequestReq); ok {
return x.SetGroupAddRequestReq
}
return nil
}
func (x *Frame) GetGetLoginInfoReq() *GetLoginInfoReq {
if x, ok := x.GetData().(*Frame_GetLoginInfoReq); ok {
return x.GetLoginInfoReq
}
return nil
}
func (x *Frame) GetGetStrangerInfoReq() *GetStrangerInfoReq {
if x, ok := x.GetData().(*Frame_GetStrangerInfoReq); ok {
return x.GetStrangerInfoReq
}
return nil
}
func (x *Frame) GetGetFriendListReq() *GetFriendListReq {
if x, ok := x.GetData().(*Frame_GetFriendListReq); ok {
return x.GetFriendListReq
}
return nil
}
func (x *Frame) GetGetGroupInfoReq() *GetGroupInfoReq {
if x, ok := x.GetData().(*Frame_GetGroupInfoReq); ok {
return x.GetGroupInfoReq
}
return nil
}
func (x *Frame) GetGetGroupListReq() *GetGroupListReq {
if x, ok := x.GetData().(*Frame_GetGroupListReq); ok {
return x.GetGroupListReq
}
return nil
}
func (x *Frame) GetGetGroupMemberInfoReq() *GetGroupMemberInfoReq {
if x, ok := x.GetData().(*Frame_GetGroupMemberInfoReq); ok {
return x.GetGroupMemberInfoReq
}
return nil
}
func (x *Frame) GetGetGroupMemberListReq() *GetGroupMemberListReq {
if x, ok := x.GetData().(*Frame_GetGroupMemberListReq); ok {
return x.GetGroupMemberListReq
}
return nil
}
func (x *Frame) GetGetGroupHonorInfoReq() *GetGroupHonorInfoReq {
if x, ok := x.GetData().(*Frame_GetGroupHonorInfoReq); ok {
return x.GetGroupHonorInfoReq
}
return nil
}
func (x *Frame) GetGetCookiesReq() *GetCookiesReq {
if x, ok := x.GetData().(*Frame_GetCookiesReq); ok {
return x.GetCookiesReq
}
return nil
}
func (x *Frame) GetGetCsrfTokenReq() *GetCsrfTokenReq {
if x, ok := x.GetData().(*Frame_GetCsrfTokenReq); ok {
return x.GetCsrfTokenReq
}
return nil
}
func (x *Frame) GetGetCredentialsReq() *GetCredentialsReq {
if x, ok := x.GetData().(*Frame_GetCredentialsReq); ok {
return x.GetCredentialsReq
}
return nil
}
func (x *Frame) GetGetRecordReq() *GetRecordReq {
if x, ok := x.GetData().(*Frame_GetRecordReq); ok {
return x.GetRecordReq
}
return nil
}
func (x *Frame) GetGetImageReq() *GetImageReq {
if x, ok := x.GetData().(*Frame_GetImageReq); ok {
return x.GetImageReq
}
return nil
}
func (x *Frame) GetCanSendImageReq() *CanSendImageReq {
if x, ok := x.GetData().(*Frame_CanSendImageReq); ok {
return x.CanSendImageReq
}
return nil
}
func (x *Frame) GetCanSendRecordReq() *CanSendRecordReq {
if x, ok := x.GetData().(*Frame_CanSendRecordReq); ok {
return x.CanSendRecordReq
}
return nil
}
func (x *Frame) GetGetStatusReq() *GetStatusReq {
if x, ok := x.GetData().(*Frame_GetStatusReq); ok {
return x.GetStatusReq
}
return nil
}
func (x *Frame) GetGetVersionInfoReq() *GetVersionInfoReq {
if x, ok := x.GetData().(*Frame_GetVersionInfoReq); ok {
return x.GetVersionInfoReq
}
return nil
}
func (x *Frame) GetSetRestartReq() *SetRestartReq {
if x, ok := x.GetData().(*Frame_SetRestartReq); ok {
return x.SetRestartReq
}
return nil
}
func (x *Frame) GetCleanCacheReq() *CleanCacheReq {
if x, ok := x.GetData().(*Frame_CleanCacheReq); ok {
return x.CleanCacheReq
}
return nil
}
func (x *Frame) GetSetGroupSignInReq() *SetGroupSignInReq {
if x, ok := x.GetData().(*Frame_SetGroupSignInReq); ok {
return x.SetGroupSignInReq
}
return nil
}
func (x *Frame) GetSendMusicReq() *SendMusicReq {
if x, ok := x.GetData().(*Frame_SendMusicReq); ok {
return x.SendMusicReq
}
return nil
}
func (x *Frame) GetSendGroupPokeReq() *SendGroupPokeReq {
if x, ok := x.GetData().(*Frame_SendGroupPokeReq); ok {
return x.SendGroupPokeReq
}
return nil
}
func (x *Frame) GetSendFriendPokeReq() *SendFriendPokeReq {
if x, ok := x.GetData().(*Frame_SendFriendPokeReq); ok {
return x.SendFriendPokeReq
}
return nil
}
func (x *Frame) GetSendChannelMsgReq() *SendChannelMsgReq {
if x, ok := x.GetData().(*Frame_SendChannelMsgReq); ok {
return x.SendChannelMsgReq
}
return nil
}
func (x *Frame) GetSendPrivateMsgResp() *SendPrivateMsgResp {
if x, ok := x.GetData().(*Frame_SendPrivateMsgResp); ok {
return x.SendPrivateMsgResp
}
return nil
}
func (x *Frame) GetSendGroupMsgResp() *SendGroupMsgResp {
if x, ok := x.GetData().(*Frame_SendGroupMsgResp); ok {
return x.SendGroupMsgResp
}
return nil
}
func (x *Frame) GetSendMsgResp() *SendMsgResp {
if x, ok := x.GetData().(*Frame_SendMsgResp); ok {
return x.SendMsgResp
}
return nil
}
func (x *Frame) GetDeleteMsgResp() *DeleteMsgResp {
if x, ok := x.GetData().(*Frame_DeleteMsgResp); ok {
return x.DeleteMsgResp
}
return nil
}
func (x *Frame) GetGetMsgResp() *GetMsgResp {
if x, ok := x.GetData().(*Frame_GetMsgResp); ok {
return x.GetMsgResp
}
return nil
}
func (x *Frame) GetGetForwardMsgResp() *GetForwardMsgResp {