-
Notifications
You must be signed in to change notification settings - Fork 1
/
realtime.pb.go
5930 lines (5236 loc) · 211 KB
/
realtime.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
// Copyright 2019 The Nakama Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//*
// The realtime protocol for Nakama server.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.12
// source: nkrealtime.proto
package nakama
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
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)
)
// The type of chat channel.
type ChannelType int32
const (
// Default case. Assumed as ROOM type.
ChannelType_TYPE_UNSPECIFIED ChannelType = 0
// A room which anyone can join to chat.
ChannelType_ROOM ChannelType = 1
// A private channel for 1-on-1 chat.
ChannelType_DIRECT_MESSAGE ChannelType = 2
// A channel for group chat.
ChannelType_GROUP ChannelType = 3
)
// Enum value maps for ChannelType.
var (
ChannelType_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ROOM",
2: "DIRECT_MESSAGE",
3: "GROUP",
}
ChannelType_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ROOM": 1,
"DIRECT_MESSAGE": 2,
"GROUP": 3,
}
)
func (x ChannelType) Enum() *ChannelType {
p := new(ChannelType)
*p = x
return p
}
func (x ChannelType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ChannelType) Descriptor() protoreflect.EnumDescriptor {
return file_nkrealtime_proto_enumTypes[0].Descriptor()
}
func (ChannelType) Type() protoreflect.EnumType {
return &file_nkrealtime_proto_enumTypes[0]
}
func (x ChannelType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ChannelType.Descriptor instead.
func (ChannelType) EnumDescriptor() ([]byte, []int) {
return file_nkrealtime_proto_rawDescGZIP(), []int{0}
}
// The selection of possible error codes.
type ErrorCode int32
const (
// An unexpected result from the server.
ErrorCode_RUNTIME_EXCEPTION ErrorCode = 0
// The server received a message which is not recognised.
ErrorCode_UNRECOGNIZED_PAYLOAD ErrorCode = 1
// A message was expected but contains no content.
ErrorCode_MISSING_PAYLOAD ErrorCode = 2
// Fields in the message have an invalid format.
ErrorCode_BAD_INPUT ErrorCode = 3
// The match id was not found.
ErrorCode_MATCH_NOT_FOUND ErrorCode = 4
// The match join was rejected.
ErrorCode_MATCH_JOIN_REJECTED ErrorCode = 5
// The runtime function does not exist on the server.
ErrorCode_RUNTIME_FUNCTION_NOT_FOUND ErrorCode = 6
// The runtime function executed with an error.
ErrorCode_RUNTIME_FUNCTION_EXCEPTION ErrorCode = 7
)
// Enum value maps for ErrorCode.
var (
ErrorCode_name = map[int32]string{
0: "RUNTIME_EXCEPTION",
1: "UNRECOGNIZED_PAYLOAD",
2: "MISSING_PAYLOAD",
3: "BAD_INPUT",
4: "MATCH_NOT_FOUND",
5: "MATCH_JOIN_REJECTED",
6: "RUNTIME_FUNCTION_NOT_FOUND",
7: "RUNTIME_FUNCTION_EXCEPTION",
}
ErrorCode_value = map[string]int32{
"RUNTIME_EXCEPTION": 0,
"UNRECOGNIZED_PAYLOAD": 1,
"MISSING_PAYLOAD": 2,
"BAD_INPUT": 3,
"MATCH_NOT_FOUND": 4,
"MATCH_JOIN_REJECTED": 5,
"RUNTIME_FUNCTION_NOT_FOUND": 6,
"RUNTIME_FUNCTION_EXCEPTION": 7,
}
)
func (x ErrorCode) Enum() *ErrorCode {
p := new(ErrorCode)
*p = x
return p
}
func (x ErrorCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor {
return file_nkrealtime_proto_enumTypes[1].Descriptor()
}
func (ErrorCode) Type() protoreflect.EnumType {
return &file_nkrealtime_proto_enumTypes[1]
}
func (x ErrorCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ErrorCode.Descriptor instead.
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
return file_nkrealtime_proto_rawDescGZIP(), []int{1}
}
// An envelope for a realtime message.
type Envelope struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
// Types that are assignable to Message:
//
// *Envelope_Channel
// *Envelope_ChannelJoin
// *Envelope_ChannelLeave
// *Envelope_ChannelMessage
// *Envelope_ChannelMessageAck
// *Envelope_ChannelMessageSend
// *Envelope_ChannelMessageUpdate
// *Envelope_ChannelMessageRemove
// *Envelope_ChannelPresenceEvent
// *Envelope_Error
// *Envelope_Match
// *Envelope_MatchCreate
// *Envelope_MatchData
// *Envelope_MatchDataSend
// *Envelope_MatchJoin
// *Envelope_MatchLeave
// *Envelope_MatchPresenceEvent
// *Envelope_MatchmakerAdd
// *Envelope_MatchmakerMatched
// *Envelope_MatchmakerRemove
// *Envelope_MatchmakerTicket
// *Envelope_Notifications
// *Envelope_Rpc
// *Envelope_Status
// *Envelope_StatusFollow
// *Envelope_StatusPresenceEvent
// *Envelope_StatusUnfollow
// *Envelope_StatusUpdate
// *Envelope_StreamData
// *Envelope_StreamPresenceEvent
// *Envelope_Ping
// *Envelope_Pong
// *Envelope_Party
// *Envelope_PartyCreate
// *Envelope_PartyJoin
// *Envelope_PartyLeave
// *Envelope_PartyPromote
// *Envelope_PartyLeader
// *Envelope_PartyAccept
// *Envelope_PartyRemove
// *Envelope_PartyClose
// *Envelope_PartyJoinRequestList
// *Envelope_PartyJoinRequest
// *Envelope_PartyMatchmakerAdd
// *Envelope_PartyMatchmakerRemove
// *Envelope_PartyMatchmakerTicket
// *Envelope_PartyData
// *Envelope_PartyDataSend
// *Envelope_PartyPresenceEvent
Message isEnvelope_Message `protobuf_oneof:"message"`
}
func (x *Envelope) Reset() {
*x = Envelope{}
if protoimpl.UnsafeEnabled {
mi := &file_nkrealtime_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Envelope) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Envelope) ProtoMessage() {}
func (x *Envelope) ProtoReflect() protoreflect.Message {
mi := &file_nkrealtime_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 Envelope.ProtoReflect.Descriptor instead.
func (*Envelope) Descriptor() ([]byte, []int) {
return file_nkrealtime_proto_rawDescGZIP(), []int{0}
}
func (x *Envelope) GetCid() string {
if x != nil {
return x.Cid
}
return ""
}
func (m *Envelope) GetMessage() isEnvelope_Message {
if m != nil {
return m.Message
}
return nil
}
func (x *Envelope) GetChannel() *ChannelMsg {
if x, ok := x.GetMessage().(*Envelope_Channel); ok {
return x.Channel
}
return nil
}
func (x *Envelope) GetChannelJoin() *ChannelJoinMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelJoin); ok {
return x.ChannelJoin
}
return nil
}
func (x *Envelope) GetChannelLeave() *ChannelLeaveMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelLeave); ok {
return x.ChannelLeave
}
return nil
}
func (x *Envelope) GetChannelMessage() *ChannelMessage {
if x, ok := x.GetMessage().(*Envelope_ChannelMessage); ok {
return x.ChannelMessage
}
return nil
}
func (x *Envelope) GetChannelMessageAck() *ChannelMessageAckMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelMessageAck); ok {
return x.ChannelMessageAck
}
return nil
}
func (x *Envelope) GetChannelMessageSend() *ChannelMessageSendMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelMessageSend); ok {
return x.ChannelMessageSend
}
return nil
}
func (x *Envelope) GetChannelMessageUpdate() *ChannelMessageUpdateMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelMessageUpdate); ok {
return x.ChannelMessageUpdate
}
return nil
}
func (x *Envelope) GetChannelMessageRemove() *ChannelMessageRemoveMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelMessageRemove); ok {
return x.ChannelMessageRemove
}
return nil
}
func (x *Envelope) GetChannelPresenceEvent() *ChannelPresenceEventMsg {
if x, ok := x.GetMessage().(*Envelope_ChannelPresenceEvent); ok {
return x.ChannelPresenceEvent
}
return nil
}
func (x *Envelope) GetError() *ErrorMsg {
if x, ok := x.GetMessage().(*Envelope_Error); ok {
return x.Error
}
return nil
}
func (x *Envelope) GetMatch() *MatchMsg {
if x, ok := x.GetMessage().(*Envelope_Match); ok {
return x.Match
}
return nil
}
func (x *Envelope) GetMatchCreate() *MatchCreateMsg {
if x, ok := x.GetMessage().(*Envelope_MatchCreate); ok {
return x.MatchCreate
}
return nil
}
func (x *Envelope) GetMatchData() *MatchDataMsg {
if x, ok := x.GetMessage().(*Envelope_MatchData); ok {
return x.MatchData
}
return nil
}
func (x *Envelope) GetMatchDataSend() *MatchDataSendMsg {
if x, ok := x.GetMessage().(*Envelope_MatchDataSend); ok {
return x.MatchDataSend
}
return nil
}
func (x *Envelope) GetMatchJoin() *MatchJoinMsg {
if x, ok := x.GetMessage().(*Envelope_MatchJoin); ok {
return x.MatchJoin
}
return nil
}
func (x *Envelope) GetMatchLeave() *MatchLeaveMsg {
if x, ok := x.GetMessage().(*Envelope_MatchLeave); ok {
return x.MatchLeave
}
return nil
}
func (x *Envelope) GetMatchPresenceEvent() *MatchPresenceEventMsg {
if x, ok := x.GetMessage().(*Envelope_MatchPresenceEvent); ok {
return x.MatchPresenceEvent
}
return nil
}
func (x *Envelope) GetMatchmakerAdd() *MatchmakerAddMsg {
if x, ok := x.GetMessage().(*Envelope_MatchmakerAdd); ok {
return x.MatchmakerAdd
}
return nil
}
func (x *Envelope) GetMatchmakerMatched() *MatchmakerMatchedMsg {
if x, ok := x.GetMessage().(*Envelope_MatchmakerMatched); ok {
return x.MatchmakerMatched
}
return nil
}
func (x *Envelope) GetMatchmakerRemove() *MatchmakerRemoveMsg {
if x, ok := x.GetMessage().(*Envelope_MatchmakerRemove); ok {
return x.MatchmakerRemove
}
return nil
}
func (x *Envelope) GetMatchmakerTicket() *MatchmakerTicketMsg {
if x, ok := x.GetMessage().(*Envelope_MatchmakerTicket); ok {
return x.MatchmakerTicket
}
return nil
}
func (x *Envelope) GetNotifications() *NotificationsMsg {
if x, ok := x.GetMessage().(*Envelope_Notifications); ok {
return x.Notifications
}
return nil
}
func (x *Envelope) GetRpc() *RpcMsg {
if x, ok := x.GetMessage().(*Envelope_Rpc); ok {
return x.Rpc
}
return nil
}
func (x *Envelope) GetStatus() *StatusMsg {
if x, ok := x.GetMessage().(*Envelope_Status); ok {
return x.Status
}
return nil
}
func (x *Envelope) GetStatusFollow() *StatusFollowMsg {
if x, ok := x.GetMessage().(*Envelope_StatusFollow); ok {
return x.StatusFollow
}
return nil
}
func (x *Envelope) GetStatusPresenceEvent() *StatusPresenceEventMsg {
if x, ok := x.GetMessage().(*Envelope_StatusPresenceEvent); ok {
return x.StatusPresenceEvent
}
return nil
}
func (x *Envelope) GetStatusUnfollow() *StatusUnfollowMsg {
if x, ok := x.GetMessage().(*Envelope_StatusUnfollow); ok {
return x.StatusUnfollow
}
return nil
}
func (x *Envelope) GetStatusUpdate() *StatusUpdateMsg {
if x, ok := x.GetMessage().(*Envelope_StatusUpdate); ok {
return x.StatusUpdate
}
return nil
}
func (x *Envelope) GetStreamData() *StreamDataMsg {
if x, ok := x.GetMessage().(*Envelope_StreamData); ok {
return x.StreamData
}
return nil
}
func (x *Envelope) GetStreamPresenceEvent() *StreamPresenceEventMsg {
if x, ok := x.GetMessage().(*Envelope_StreamPresenceEvent); ok {
return x.StreamPresenceEvent
}
return nil
}
func (x *Envelope) GetPing() *PingMsg {
if x, ok := x.GetMessage().(*Envelope_Ping); ok {
return x.Ping
}
return nil
}
func (x *Envelope) GetPong() *PongMsg {
if x, ok := x.GetMessage().(*Envelope_Pong); ok {
return x.Pong
}
return nil
}
func (x *Envelope) GetParty() *PartyMsg {
if x, ok := x.GetMessage().(*Envelope_Party); ok {
return x.Party
}
return nil
}
func (x *Envelope) GetPartyCreate() *PartyCreateMsg {
if x, ok := x.GetMessage().(*Envelope_PartyCreate); ok {
return x.PartyCreate
}
return nil
}
func (x *Envelope) GetPartyJoin() *PartyJoinMsg {
if x, ok := x.GetMessage().(*Envelope_PartyJoin); ok {
return x.PartyJoin
}
return nil
}
func (x *Envelope) GetPartyLeave() *PartyLeaveMsg {
if x, ok := x.GetMessage().(*Envelope_PartyLeave); ok {
return x.PartyLeave
}
return nil
}
func (x *Envelope) GetPartyPromote() *PartyPromoteMsg {
if x, ok := x.GetMessage().(*Envelope_PartyPromote); ok {
return x.PartyPromote
}
return nil
}
func (x *Envelope) GetPartyLeader() *PartyLeaderMsg {
if x, ok := x.GetMessage().(*Envelope_PartyLeader); ok {
return x.PartyLeader
}
return nil
}
func (x *Envelope) GetPartyAccept() *PartyAcceptMsg {
if x, ok := x.GetMessage().(*Envelope_PartyAccept); ok {
return x.PartyAccept
}
return nil
}
func (x *Envelope) GetPartyRemove() *PartyRemoveMsg {
if x, ok := x.GetMessage().(*Envelope_PartyRemove); ok {
return x.PartyRemove
}
return nil
}
func (x *Envelope) GetPartyClose() *PartyCloseMsg {
if x, ok := x.GetMessage().(*Envelope_PartyClose); ok {
return x.PartyClose
}
return nil
}
func (x *Envelope) GetPartyJoinRequestList() *PartyJoinRequestsMsg {
if x, ok := x.GetMessage().(*Envelope_PartyJoinRequestList); ok {
return x.PartyJoinRequestList
}
return nil
}
func (x *Envelope) GetPartyJoinRequest() *PartyJoinRequestMsg {
if x, ok := x.GetMessage().(*Envelope_PartyJoinRequest); ok {
return x.PartyJoinRequest
}
return nil
}
func (x *Envelope) GetPartyMatchmakerAdd() *PartyMatchmakerAddMsg {
if x, ok := x.GetMessage().(*Envelope_PartyMatchmakerAdd); ok {
return x.PartyMatchmakerAdd
}
return nil
}
func (x *Envelope) GetPartyMatchmakerRemove() *PartyMatchmakerRemoveMsg {
if x, ok := x.GetMessage().(*Envelope_PartyMatchmakerRemove); ok {
return x.PartyMatchmakerRemove
}
return nil
}
func (x *Envelope) GetPartyMatchmakerTicket() *PartyMatchmakerTicketMsg {
if x, ok := x.GetMessage().(*Envelope_PartyMatchmakerTicket); ok {
return x.PartyMatchmakerTicket
}
return nil
}
func (x *Envelope) GetPartyData() *PartyDataMsg {
if x, ok := x.GetMessage().(*Envelope_PartyData); ok {
return x.PartyData
}
return nil
}
func (x *Envelope) GetPartyDataSend() *PartyDataSendMsg {
if x, ok := x.GetMessage().(*Envelope_PartyDataSend); ok {
return x.PartyDataSend
}
return nil
}
func (x *Envelope) GetPartyPresenceEvent() *PartyPresenceEventMsg {
if x, ok := x.GetMessage().(*Envelope_PartyPresenceEvent); ok {
return x.PartyPresenceEvent
}
return nil
}
type isEnvelope_Message interface {
isEnvelope_Message()
}
type Envelope_Channel struct {
// A response from a channel join operation.
Channel *ChannelMsg `protobuf:"bytes,2,opt,name=channel,proto3,oneof"`
}
type Envelope_ChannelJoin struct {
// Join a realtime chat channel.
ChannelJoin *ChannelJoinMsg `protobuf:"bytes,3,opt,name=channel_join,json=channelJoin,proto3,oneof"`
}
type Envelope_ChannelLeave struct {
// Leave a realtime chat channel.
ChannelLeave *ChannelLeaveMsg `protobuf:"bytes,4,opt,name=channel_leave,json=channelLeave,proto3,oneof"`
}
type Envelope_ChannelMessage struct {
// An incoming message on a realtime chat channel.
ChannelMessage *ChannelMessage `protobuf:"bytes,5,opt,name=channel_message,json=channelMessage,proto3,oneof"`
}
type Envelope_ChannelMessageAck struct {
// An acknowledgement received in response to sending a message on a chat channel.
ChannelMessageAck *ChannelMessageAckMsg `protobuf:"bytes,6,opt,name=channel_message_ack,json=channelMessageAck,proto3,oneof"`
}
type Envelope_ChannelMessageSend struct {
// Send a message to a realtime chat channel.
ChannelMessageSend *ChannelMessageSendMsg `protobuf:"bytes,7,opt,name=channel_message_send,json=channelMessageSend,proto3,oneof"`
}
type Envelope_ChannelMessageUpdate struct {
// Update a message previously sent to a realtime chat channel.
ChannelMessageUpdate *ChannelMessageUpdateMsg `protobuf:"bytes,8,opt,name=channel_message_update,json=channelMessageUpdate,proto3,oneof"`
}
type Envelope_ChannelMessageRemove struct {
// Remove a message previously sent to a realtime chat channel.
ChannelMessageRemove *ChannelMessageRemoveMsg `protobuf:"bytes,9,opt,name=channel_message_remove,json=channelMessageRemove,proto3,oneof"`
}
type Envelope_ChannelPresenceEvent struct {
// Presence update for a particular realtime chat channel.
ChannelPresenceEvent *ChannelPresenceEventMsg `protobuf:"bytes,10,opt,name=channel_presence_event,json=channelPresenceEvent,proto3,oneof"`
}
type Envelope_Error struct {
// Describes an error which occurred on the server.
Error *ErrorMsg `protobuf:"bytes,11,opt,name=error,proto3,oneof"`
}
type Envelope_Match struct {
// Incoming information about a realtime match.
Match *MatchMsg `protobuf:"bytes,12,opt,name=match,proto3,oneof"`
}
type Envelope_MatchCreate struct {
// A client to server request to create a realtime match.
MatchCreate *MatchCreateMsg `protobuf:"bytes,13,opt,name=match_create,json=matchCreate,proto3,oneof"`
}
type Envelope_MatchData struct {
// Incoming realtime match data delivered from the server.
MatchData *MatchDataMsg `protobuf:"bytes,14,opt,name=match_data,json=matchData,proto3,oneof"`
}
type Envelope_MatchDataSend struct {
// A client to server request to send data to a realtime match.
MatchDataSend *MatchDataSendMsg `protobuf:"bytes,15,opt,name=match_data_send,json=matchDataSend,proto3,oneof"`
}
type Envelope_MatchJoin struct {
// A client to server request to join a realtime match.
MatchJoin *MatchJoinMsg `protobuf:"bytes,16,opt,name=match_join,json=matchJoin,proto3,oneof"`
}
type Envelope_MatchLeave struct {
// A client to server request to leave a realtime match.
MatchLeave *MatchLeaveMsg `protobuf:"bytes,17,opt,name=match_leave,json=matchLeave,proto3,oneof"`
}
type Envelope_MatchPresenceEvent struct {
// Presence update for a particular realtime match.
MatchPresenceEvent *MatchPresenceEventMsg `protobuf:"bytes,18,opt,name=match_presence_event,json=matchPresenceEvent,proto3,oneof"`
}
type Envelope_MatchmakerAdd struct {
// Submit a new matchmaking process request.
MatchmakerAdd *MatchmakerAddMsg `protobuf:"bytes,19,opt,name=matchmaker_add,json=matchmakerAdd,proto3,oneof"`
}
type Envelope_MatchmakerMatched struct {
// A successful matchmaking result.
MatchmakerMatched *MatchmakerMatchedMsg `protobuf:"bytes,20,opt,name=matchmaker_matched,json=matchmakerMatched,proto3,oneof"`
}
type Envelope_MatchmakerRemove struct {
// Cancel a matchmaking process using a ticket.
MatchmakerRemove *MatchmakerRemoveMsg `protobuf:"bytes,21,opt,name=matchmaker_remove,json=matchmakerRemove,proto3,oneof"`
}
type Envelope_MatchmakerTicket struct {
// A response from starting a new matchmaking process.
MatchmakerTicket *MatchmakerTicketMsg `protobuf:"bytes,22,opt,name=matchmaker_ticket,json=matchmakerTicket,proto3,oneof"`
}
type Envelope_Notifications struct {
// Notifications send by the server.
Notifications *NotificationsMsg `protobuf:"bytes,23,opt,name=notifications,proto3,oneof"`
}
type Envelope_Rpc struct {
// RPC call or response.
Rpc *RpcMsg `protobuf:"bytes,24,opt,name=rpc,proto3,oneof"`
}
type Envelope_Status struct {
// An incoming status snapshot for some set of users.
Status *StatusMsg `protobuf:"bytes,25,opt,name=status,proto3,oneof"`
}
type Envelope_StatusFollow struct {
// Start following some set of users to receive their status updates.
StatusFollow *StatusFollowMsg `protobuf:"bytes,26,opt,name=status_follow,json=statusFollow,proto3,oneof"`
}
type Envelope_StatusPresenceEvent struct {
// An incoming status update.
StatusPresenceEvent *StatusPresenceEventMsg `protobuf:"bytes,27,opt,name=status_presence_event,json=statusPresenceEvent,proto3,oneof"`
}
type Envelope_StatusUnfollow struct {
// Stop following some set of users to no longer receive their status updates.
StatusUnfollow *StatusUnfollowMsg `protobuf:"bytes,28,opt,name=status_unfollow,json=statusUnfollow,proto3,oneof"`
}
type Envelope_StatusUpdate struct {
// Set the user's own status.
StatusUpdate *StatusUpdateMsg `protobuf:"bytes,29,opt,name=status_update,json=statusUpdate,proto3,oneof"`
}
type Envelope_StreamData struct {
// A data message delivered over a stream.
StreamData *StreamDataMsg `protobuf:"bytes,30,opt,name=stream_data,json=streamData,proto3,oneof"`
}
type Envelope_StreamPresenceEvent struct {
// Presence update for a particular stream.
StreamPresenceEvent *StreamPresenceEventMsg `protobuf:"bytes,31,opt,name=stream_presence_event,json=streamPresenceEvent,proto3,oneof"`
}
type Envelope_Ping struct {
// Application-level heartbeat and connection check.
Ping *PingMsg `protobuf:"bytes,32,opt,name=ping,proto3,oneof"`
}
type Envelope_Pong struct {
// Application-level heartbeat and connection check response.
Pong *PongMsg `protobuf:"bytes,33,opt,name=pong,proto3,oneof"`
}
type Envelope_Party struct {
// Incoming information about a party.
Party *PartyMsg `protobuf:"bytes,34,opt,name=party,proto3,oneof"`
}
type Envelope_PartyCreate struct {
// Create a party.
PartyCreate *PartyCreateMsg `protobuf:"bytes,35,opt,name=party_create,json=partyCreate,proto3,oneof"`
}
type Envelope_PartyJoin struct {
// Join a party, or request to join if the party is not open.
PartyJoin *PartyJoinMsg `protobuf:"bytes,36,opt,name=party_join,json=partyJoin,proto3,oneof"`
}
type Envelope_PartyLeave struct {
// Leave a party.
PartyLeave *PartyLeaveMsg `protobuf:"bytes,37,opt,name=party_leave,json=partyLeave,proto3,oneof"`
}
type Envelope_PartyPromote struct {
// Promote a new party leader.
PartyPromote *PartyPromoteMsg `protobuf:"bytes,38,opt,name=party_promote,json=partyPromote,proto3,oneof"`
}
type Envelope_PartyLeader struct {
// Announcement of a new party leader.
PartyLeader *PartyLeaderMsg `protobuf:"bytes,39,opt,name=party_leader,json=partyLeader,proto3,oneof"`
}
type Envelope_PartyAccept struct {
// Accept a request to join.
PartyAccept *PartyAcceptMsg `protobuf:"bytes,40,opt,name=party_accept,json=partyAccept,proto3,oneof"`
}
type Envelope_PartyRemove struct {
// Kick a party member, or decline a request to join.
PartyRemove *PartyRemoveMsg `protobuf:"bytes,41,opt,name=party_remove,json=partyRemove,proto3,oneof"`
}
type Envelope_PartyClose struct {
// End a party, kicking all party members and closing it.
PartyClose *PartyCloseMsg `protobuf:"bytes,42,opt,name=party_close,json=partyClose,proto3,oneof"`
}
type Envelope_PartyJoinRequestList struct {
// Request a list of pending join requests for a party.
PartyJoinRequestList *PartyJoinRequestsMsg `protobuf:"bytes,43,opt,name=party_join_request_list,json=partyJoinRequestList,proto3,oneof"`
}
type Envelope_PartyJoinRequest struct {
// Incoming notification for one or more new presences attempting to join the party.
PartyJoinRequest *PartyJoinRequestMsg `protobuf:"bytes,44,opt,name=party_join_request,json=partyJoinRequest,proto3,oneof"`
}
type Envelope_PartyMatchmakerAdd struct {
// Begin matchmaking as a party.
PartyMatchmakerAdd *PartyMatchmakerAddMsg `protobuf:"bytes,45,opt,name=party_matchmaker_add,json=partyMatchmakerAdd,proto3,oneof"`
}
type Envelope_PartyMatchmakerRemove struct {
// Cancel a party matchmaking process using a ticket.
PartyMatchmakerRemove *PartyMatchmakerRemoveMsg `protobuf:"bytes,46,opt,name=party_matchmaker_remove,json=partyMatchmakerRemove,proto3,oneof"`
}
type Envelope_PartyMatchmakerTicket struct {
// A response from starting a new party matchmaking process.
PartyMatchmakerTicket *PartyMatchmakerTicketMsg `protobuf:"bytes,47,opt,name=party_matchmaker_ticket,json=partyMatchmakerTicket,proto3,oneof"`
}
type Envelope_PartyData struct {
// Incoming party data delivered from the server.
PartyData *PartyDataMsg `protobuf:"bytes,48,opt,name=party_data,json=partyData,proto3,oneof"`
}
type Envelope_PartyDataSend struct {
// A client to server request to send data to a party.
PartyDataSend *PartyDataSendMsg `protobuf:"bytes,49,opt,name=party_data_send,json=partyDataSend,proto3,oneof"`
}
type Envelope_PartyPresenceEvent struct {
// Presence update for a particular party.
PartyPresenceEvent *PartyPresenceEventMsg `protobuf:"bytes,50,opt,name=party_presence_event,json=partyPresenceEvent,proto3,oneof"`
}
func (*Envelope_Channel) isEnvelope_Message() {}
func (*Envelope_ChannelJoin) isEnvelope_Message() {}
func (*Envelope_ChannelLeave) isEnvelope_Message() {}
func (*Envelope_ChannelMessage) isEnvelope_Message() {}
func (*Envelope_ChannelMessageAck) isEnvelope_Message() {}
func (*Envelope_ChannelMessageSend) isEnvelope_Message() {}
func (*Envelope_ChannelMessageUpdate) isEnvelope_Message() {}
func (*Envelope_ChannelMessageRemove) isEnvelope_Message() {}
func (*Envelope_ChannelPresenceEvent) isEnvelope_Message() {}
func (*Envelope_Error) isEnvelope_Message() {}
func (*Envelope_Match) isEnvelope_Message() {}
func (*Envelope_MatchCreate) isEnvelope_Message() {}
func (*Envelope_MatchData) isEnvelope_Message() {}
func (*Envelope_MatchDataSend) isEnvelope_Message() {}
func (*Envelope_MatchJoin) isEnvelope_Message() {}
func (*Envelope_MatchLeave) isEnvelope_Message() {}
func (*Envelope_MatchPresenceEvent) isEnvelope_Message() {}
func (*Envelope_MatchmakerAdd) isEnvelope_Message() {}
func (*Envelope_MatchmakerMatched) isEnvelope_Message() {}
func (*Envelope_MatchmakerRemove) isEnvelope_Message() {}
func (*Envelope_MatchmakerTicket) isEnvelope_Message() {}
func (*Envelope_Notifications) isEnvelope_Message() {}
func (*Envelope_Rpc) isEnvelope_Message() {}
func (*Envelope_Status) isEnvelope_Message() {}
func (*Envelope_StatusFollow) isEnvelope_Message() {}
func (*Envelope_StatusPresenceEvent) isEnvelope_Message() {}
func (*Envelope_StatusUnfollow) isEnvelope_Message() {}
func (*Envelope_StatusUpdate) isEnvelope_Message() {}
func (*Envelope_StreamData) isEnvelope_Message() {}
func (*Envelope_StreamPresenceEvent) isEnvelope_Message() {}
func (*Envelope_Ping) isEnvelope_Message() {}
func (*Envelope_Pong) isEnvelope_Message() {}
func (*Envelope_Party) isEnvelope_Message() {}
func (*Envelope_PartyCreate) isEnvelope_Message() {}
func (*Envelope_PartyJoin) isEnvelope_Message() {}
func (*Envelope_PartyLeave) isEnvelope_Message() {}
func (*Envelope_PartyPromote) isEnvelope_Message() {}
func (*Envelope_PartyLeader) isEnvelope_Message() {}
func (*Envelope_PartyAccept) isEnvelope_Message() {}
func (*Envelope_PartyRemove) isEnvelope_Message() {}
func (*Envelope_PartyClose) isEnvelope_Message() {}
func (*Envelope_PartyJoinRequestList) isEnvelope_Message() {}
func (*Envelope_PartyJoinRequest) isEnvelope_Message() {}
func (*Envelope_PartyMatchmakerAdd) isEnvelope_Message() {}
func (*Envelope_PartyMatchmakerRemove) isEnvelope_Message() {}
func (*Envelope_PartyMatchmakerTicket) isEnvelope_Message() {}
func (*Envelope_PartyData) isEnvelope_Message() {}
func (*Envelope_PartyDataSend) isEnvelope_Message() {}
func (*Envelope_PartyPresenceEvent) isEnvelope_Message() {}
// A realtime chat channel.
type ChannelMsg struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ID of the channel.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The users currently in the channel.
Presences []*UserPresenceMsg `protobuf:"bytes,2,rep,name=presences,proto3" json:"presences,omitempty"`
// A reference to the current user's presence in the channel.
Self *UserPresenceMsg `protobuf:"bytes,3,opt,name=self,proto3" json:"self,omitempty"`
// The name of the chat room, or an empty string if this message was not sent through a chat room.
RoomName string `protobuf:"bytes,4,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
// The ID of the group, or an empty string if this message was not sent through a group channel.
GroupId string `protobuf:"bytes,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
// The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
UserIdOne string `protobuf:"bytes,6,opt,name=user_id_one,json=userIdOne,proto3" json:"user_id_one,omitempty"`
// The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
UserIdTwo string `protobuf:"bytes,7,opt,name=user_id_two,json=userIdTwo,proto3" json:"user_id_two,omitempty"`
}
func (x *ChannelMsg) Reset() {
*x = ChannelMsg{}
if protoimpl.UnsafeEnabled {
mi := &file_nkrealtime_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChannelMsg) String() string {