-
Notifications
You must be signed in to change notification settings - Fork 12
/
epdisc_candidate.pb.go
1363 lines (1222 loc) · 57.2 KB
/
epdisc_candidate.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
// SPDX-FileCopyrightText: 2023 Steffen Vogel <post@steffenvogel.de>
// SPDX-License-Identifier: Apache-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v3.19.6
// source: feature/epdisc_candidate.proto
package epdisc
import (
proto "cunicu.li/cunicu/pkg/proto"
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 CandidatePairState int32
const (
CandidatePairState_UNSPECIFIED_CANDIDATE_PAIR_STATE CandidatePairState = 0
// CandidatePairStateWaiting means a check has not been performed for
// this pair
CandidatePairState_WAITING CandidatePairState = 1
// CandidatePairStateInProgress means a check has been sent for this pair,
// but the transaction is in progress.
CandidatePairState_INPROGRESS CandidatePairState = 2
// CandidatePairStateFailed means a check for this pair was already done
// and failed, either never producing any response or producing an unrecoverable
// failure response.
CandidatePairState_FAILED_ CandidatePairState = 3
// CandidatePairStateSucceeded means a check for this pair was already
// done and produced a successful result.
CandidatePairState_SUCCEEDED CandidatePairState = 4
)
// Enum value maps for CandidatePairState.
var (
CandidatePairState_name = map[int32]string{
0: "UNSPECIFIED_CANDIDATE_PAIR_STATE",
1: "WAITING",
2: "INPROGRESS",
3: "FAILED_",
4: "SUCCEEDED",
}
CandidatePairState_value = map[string]int32{
"UNSPECIFIED_CANDIDATE_PAIR_STATE": 0,
"WAITING": 1,
"INPROGRESS": 2,
"FAILED_": 3,
"SUCCEEDED": 4,
}
)
func (x CandidatePairState) Enum() *CandidatePairState {
p := new(CandidatePairState)
*p = x
return p
}
func (x CandidatePairState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CandidatePairState) Descriptor() protoreflect.EnumDescriptor {
return file_feature_epdisc_candidate_proto_enumTypes[0].Descriptor()
}
func (CandidatePairState) Type() protoreflect.EnumType {
return &file_feature_epdisc_candidate_proto_enumTypes[0]
}
func (x CandidatePairState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CandidatePairState.Descriptor instead.
func (CandidatePairState) EnumDescriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{0}
}
// ICE Candidate types
// See: https://datatracker.ietf.org/doc/html/rfc8445#section-5.1.1
type CandidateType int32
const (
CandidateType_UNSPECIFIED_CANDIDATE_TYPE CandidateType = 0
CandidateType_HOST CandidateType = 1
CandidateType_SERVER_REFLEXIVE CandidateType = 2
CandidateType_PEER_REFLEXIVE CandidateType = 3
CandidateType_RELAY CandidateType = 4
)
// Enum value maps for CandidateType.
var (
CandidateType_name = map[int32]string{
0: "UNSPECIFIED_CANDIDATE_TYPE",
1: "HOST",
2: "SERVER_REFLEXIVE",
3: "PEER_REFLEXIVE",
4: "RELAY",
}
CandidateType_value = map[string]int32{
"UNSPECIFIED_CANDIDATE_TYPE": 0,
"HOST": 1,
"SERVER_REFLEXIVE": 2,
"PEER_REFLEXIVE": 3,
"RELAY": 4,
}
)
func (x CandidateType) Enum() *CandidateType {
p := new(CandidateType)
*p = x
return p
}
func (x CandidateType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CandidateType) Descriptor() protoreflect.EnumDescriptor {
return file_feature_epdisc_candidate_proto_enumTypes[1].Descriptor()
}
func (CandidateType) Type() protoreflect.EnumType {
return &file_feature_epdisc_candidate_proto_enumTypes[1]
}
func (x CandidateType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CandidateType.Descriptor instead.
func (CandidateType) EnumDescriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{1}
}
type NetworkType int32
const (
NetworkType_UNSPECIFIED_NETWORK_TYPE NetworkType = 0
NetworkType_UDP4 NetworkType = 1
NetworkType_UDP6 NetworkType = 2
NetworkType_TCP4 NetworkType = 3
NetworkType_TCP6 NetworkType = 4
)
// Enum value maps for NetworkType.
var (
NetworkType_name = map[int32]string{
0: "UNSPECIFIED_NETWORK_TYPE",
1: "UDP4",
2: "UDP6",
3: "TCP4",
4: "TCP6",
}
NetworkType_value = map[string]int32{
"UNSPECIFIED_NETWORK_TYPE": 0,
"UDP4": 1,
"UDP6": 2,
"TCP4": 3,
"TCP6": 4,
}
)
func (x NetworkType) Enum() *NetworkType {
p := new(NetworkType)
*p = x
return p
}
func (x NetworkType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkType) Descriptor() protoreflect.EnumDescriptor {
return file_feature_epdisc_candidate_proto_enumTypes[2].Descriptor()
}
func (NetworkType) Type() protoreflect.EnumType {
return &file_feature_epdisc_candidate_proto_enumTypes[2]
}
func (x NetworkType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkType.Descriptor instead.
func (NetworkType) EnumDescriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{2}
}
// Type of TCP candidate
// See: https://datatracker.ietf.org/doc/html/rfc6544
type TCPType int32
const (
TCPType_UNSPECIFIED_TCP_TYPE TCPType = 0
TCPType_ACTIVE TCPType = 1
TCPType_PASSIVE TCPType = 2
TCPType_SIMULTANEOUS_OPEN TCPType = 3
)
// Enum value maps for TCPType.
var (
TCPType_name = map[int32]string{
0: "UNSPECIFIED_TCP_TYPE",
1: "ACTIVE",
2: "PASSIVE",
3: "SIMULTANEOUS_OPEN",
}
TCPType_value = map[string]int32{
"UNSPECIFIED_TCP_TYPE": 0,
"ACTIVE": 1,
"PASSIVE": 2,
"SIMULTANEOUS_OPEN": 3,
}
)
func (x TCPType) Enum() *TCPType {
p := new(TCPType)
*p = x
return p
}
func (x TCPType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TCPType) Descriptor() protoreflect.EnumDescriptor {
return file_feature_epdisc_candidate_proto_enumTypes[3].Descriptor()
}
func (TCPType) Type() protoreflect.EnumType {
return &file_feature_epdisc_candidate_proto_enumTypes[3]
}
func (x TCPType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TCPType.Descriptor instead.
func (TCPType) EnumDescriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{3}
}
type RelayProtocol int32
const (
RelayProtocol_UNSPECIFIED_RELAY_PROTOCOL RelayProtocol = 0
RelayProtocol_UDP RelayProtocol = 1
RelayProtocol_TCP RelayProtocol = 2
RelayProtocol_TLS RelayProtocol = 3
RelayProtocol_DTLS RelayProtocol = 4
)
// Enum value maps for RelayProtocol.
var (
RelayProtocol_name = map[int32]string{
0: "UNSPECIFIED_RELAY_PROTOCOL",
1: "UDP",
2: "TCP",
3: "TLS",
4: "DTLS",
}
RelayProtocol_value = map[string]int32{
"UNSPECIFIED_RELAY_PROTOCOL": 0,
"UDP": 1,
"TCP": 2,
"TLS": 3,
"DTLS": 4,
}
)
func (x RelayProtocol) Enum() *RelayProtocol {
p := new(RelayProtocol)
*p = x
return p
}
func (x RelayProtocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RelayProtocol) Descriptor() protoreflect.EnumDescriptor {
return file_feature_epdisc_candidate_proto_enumTypes[4].Descriptor()
}
func (RelayProtocol) Type() protoreflect.EnumType {
return &file_feature_epdisc_candidate_proto_enumTypes[4]
}
func (x RelayProtocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RelayProtocol.Descriptor instead.
func (RelayProtocol) EnumDescriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{4}
}
type CandidatePair struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Local *Candidate `protobuf:"bytes,1,opt,name=local,proto3" json:"local,omitempty"`
Remote *Candidate `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
}
func (x *CandidatePair) Reset() {
*x = CandidatePair{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_epdisc_candidate_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CandidatePair) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CandidatePair) ProtoMessage() {}
func (x *CandidatePair) ProtoReflect() protoreflect.Message {
mi := &file_feature_epdisc_candidate_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 CandidatePair.ProtoReflect.Descriptor instead.
func (*CandidatePair) Descriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{0}
}
func (x *CandidatePair) GetLocal() *Candidate {
if x != nil {
return x.Local
}
return nil
}
func (x *CandidatePair) GetRemote() *Candidate {
if x != nil {
return x.Remote
}
return nil
}
// The Related Address conveys transport addresses related to the candidate,
// useful for diagnostics and other purposes.
// See: https://datatracker.ietf.org/doc/html/rfc8839#section-5.1
type RelatedAddress struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
}
func (x *RelatedAddress) Reset() {
*x = RelatedAddress{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_epdisc_candidate_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RelatedAddress) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RelatedAddress) ProtoMessage() {}
func (x *RelatedAddress) ProtoReflect() protoreflect.Message {
mi := &file_feature_epdisc_candidate_proto_msgTypes[1]
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 RelatedAddress.ProtoReflect.Descriptor instead.
func (*RelatedAddress) Descriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{1}
}
func (x *RelatedAddress) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *RelatedAddress) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
// An ICE Candidate contains a transport address for a candidate that can be used for connectivity checks.
// See: https://datatracker.ietf.org/doc/html/rfc8839#section-5.1
type Candidate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The type of candidate
Type CandidateType `protobuf:"varint,1,opt,name=type,proto3,enum=cunicu.epdisc.CandidateType" json:"type,omitempty"`
NetworkType NetworkType `protobuf:"varint,2,opt,name=network_type,json=networkType,proto3,enum=cunicu.epdisc.NetworkType" json:"network_type,omitempty"`
TcpType TCPType `protobuf:"varint,3,opt,name=tcp_type,json=tcpType,proto3,enum=cunicu.epdisc.TCPType" json:"tcp_type,omitempty"`
// An identifier that is equivalent for two candidates that are of the same type, share the same base, and come from the same STUN server.
Foundation string `protobuf:"bytes,4,opt,name=foundation,proto3" json:"foundation,omitempty"`
// A positive integer between 1 and 256 that identifies the specific component of the media stream for which this is a candidate.
Component int32 `protobuf:"varint,5,opt,name=component,proto3" json:"component,omitempty"`
// A positive integer between 1 and (2**31 - 1).
Priority int32 `protobuf:"varint,6,opt,name=priority,proto3" json:"priority,omitempty"`
// The IP address of the candidate.
Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
// The port of the candidate.
Port int32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"`
// The related address conveys transport addresses related to the candidate, useful for diagnostics and other purposes.
RelatedAddress *RelatedAddress `protobuf:"bytes,9,opt,name=related_address,json=relatedAddress,proto3" json:"related_address,omitempty"`
// The protocol used between the endpoint and the relay server.
RelayProtocol RelayProtocol `protobuf:"varint,10,opt,name=relay_protocol,json=relayProtocol,proto3,enum=cunicu.epdisc.RelayProtocol" json:"relay_protocol,omitempty"`
}
func (x *Candidate) Reset() {
*x = Candidate{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_epdisc_candidate_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Candidate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Candidate) ProtoMessage() {}
func (x *Candidate) ProtoReflect() protoreflect.Message {
mi := &file_feature_epdisc_candidate_proto_msgTypes[2]
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 Candidate.ProtoReflect.Descriptor instead.
func (*Candidate) Descriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{2}
}
func (x *Candidate) GetType() CandidateType {
if x != nil {
return x.Type
}
return CandidateType_UNSPECIFIED_CANDIDATE_TYPE
}
func (x *Candidate) GetNetworkType() NetworkType {
if x != nil {
return x.NetworkType
}
return NetworkType_UNSPECIFIED_NETWORK_TYPE
}
func (x *Candidate) GetTcpType() TCPType {
if x != nil {
return x.TcpType
}
return TCPType_UNSPECIFIED_TCP_TYPE
}
func (x *Candidate) GetFoundation() string {
if x != nil {
return x.Foundation
}
return ""
}
func (x *Candidate) GetComponent() int32 {
if x != nil {
return x.Component
}
return 0
}
func (x *Candidate) GetPriority() int32 {
if x != nil {
return x.Priority
}
return 0
}
func (x *Candidate) GetAddress() string {
if x != nil {
return x.Address
}
return ""
}
func (x *Candidate) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *Candidate) GetRelatedAddress() *RelatedAddress {
if x != nil {
return x.RelatedAddress
}
return nil
}
func (x *Candidate) GetRelayProtocol() RelayProtocol {
if x != nil {
return x.RelayProtocol
}
return RelayProtocol_UNSPECIFIED_RELAY_PROTOCOL
}
// CandidatePairStats contains ICE candidate pair statistics
type CandidatePairStats struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Timestamp is the timestamp associated with this object.
Timestamp *proto.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// LocalCandidateID is the ID of the local candidate
LocalCandidateId string `protobuf:"bytes,2,opt,name=local_candidate_id,json=localCandidateId,proto3" json:"local_candidate_id,omitempty"`
// RemoteCandidateID is the ID of the remote candidate
RemoteCandidateId string `protobuf:"bytes,3,opt,name=remote_candidate_id,json=remoteCandidateId,proto3" json:"remote_candidate_id,omitempty"`
// State represents the state of the checklist for the local and remote
// candidates in a pair.
State CandidatePairState `protobuf:"varint,4,opt,name=state,proto3,enum=cunicu.epdisc.CandidatePairState" json:"state,omitempty"`
// Nominated is true when this valid pair that should be used for media
// if it is the highest-priority one amongst those whose nominated flag is set
Nominated bool `protobuf:"varint,5,opt,name=nominated,proto3" json:"nominated,omitempty"`
// PacketsSent represents the total number of packets sent on this candidate pair.
PacketsSent uint32 `protobuf:"varint,6,opt,name=packets_sent,json=packetsSent,proto3" json:"packets_sent,omitempty"`
// PacketsReceived represents the total number of packets received on this candidate pair.
PacketsReceived uint32 `protobuf:"varint,7,opt,name=packets_received,json=packetsReceived,proto3" json:"packets_received,omitempty"`
// BytesSent represents the total number of payload bytes sent on this candidate pair
// not including headers or padding.
BytesSent uint64 `protobuf:"varint,8,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"`
// BytesReceived represents the total number of payload bytes received on this candidate pair
// not including headers or padding.
BytesReceived uint64 `protobuf:"varint,9,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"`
// LastPacketSentTimestamp represents the timestamp at which the last packet was
// sent on this particular candidate pair, excluding STUN packets.
LastPacketSentTimestamp *proto.Timestamp `protobuf:"bytes,10,opt,name=last_packet_sent_timestamp,json=lastPacketSentTimestamp,proto3" json:"last_packet_sent_timestamp,omitempty"`
// LastPacketReceivedTimestamp represents the timestamp at which the last packet
// was received on this particular candidate pair, excluding STUN packets.
LastPacketReceivedTimestamp *proto.Timestamp `protobuf:"bytes,11,opt,name=last_packet_received_timestamp,json=lastPacketReceivedTimestamp,proto3" json:"last_packet_received_timestamp,omitempty"`
// FirstRequestTimestamp represents the timestamp at which the first STUN request
// was sent on this particular candidate pair.
FirstRequestTimestamp *proto.Timestamp `protobuf:"bytes,12,opt,name=first_request_timestamp,json=firstRequestTimestamp,proto3" json:"first_request_timestamp,omitempty"`
// LastRequestTimestamp represents the timestamp at which the last STUN request
// was sent on this particular candidate pair. The average interval between two
// consecutive connectivity checks sent can be calculated with
// (LastRequestTimestamp - FirstRequestTimestamp) / RequestsSent.
LastRequestTimestamp *proto.Timestamp `protobuf:"bytes,13,opt,name=last_request_timestamp,json=lastRequestTimestamp,proto3" json:"last_request_timestamp,omitempty"`
// LastResponseTimestamp represents the timestamp at which the last STUN response
// was received on this particular candidate pair.
LastResponseTimestamp *proto.Timestamp `protobuf:"bytes,14,opt,name=last_response_timestamp,json=lastResponseTimestamp,proto3" json:"last_response_timestamp,omitempty"`
// TotalRoundTripTime represents the sum of all round trip time measurements
// in seconds since the beginning of the session, based on STUN connectivity
// check responses (ResponsesReceived), including those that reply to requests
// that are sent in order to verify consent. The average round trip time can
// be computed from TotalRoundTripTime by dividing it by ResponsesReceived.
TotalRoundtripTime float64 `protobuf:"fixed64,15,opt,name=total_roundtrip_time,json=totalRoundtripTime,proto3" json:"total_roundtrip_time,omitempty"`
// CurrentRoundTripTime represents the latest round trip time measured in seconds,
// computed from both STUN connectivity checks, including those that are sent
// for consent verification.
CurrentRoundtripTime float64 `protobuf:"fixed64,16,opt,name=current_roundtrip_time,json=currentRoundtripTime,proto3" json:"current_roundtrip_time,omitempty"`
// AvailableOutgoingBitrate is calculated by the underlying congestion control
// by combining the available bitrate for all the outgoing RTP streams using
// this candidate pair. The bitrate measurement does not count the size of the
// IP or other transport layers like TCP or UDP. It is similar to the TIAS defined
// in RFC 3890, i.e., it is measured in bits per second and the bitrate is calculated
// over a 1 second window.
AvailableOutgoingBitrate float64 `protobuf:"fixed64,17,opt,name=available_outgoing_bitrate,json=availableOutgoingBitrate,proto3" json:"available_outgoing_bitrate,omitempty"`
// AvailableIncomingBitrate is calculated by the underlying congestion control
// by combining the available bitrate for all the incoming RTP streams using
// this candidate pair. The bitrate measurement does not count the size of the
// IP or other transport layers like TCP or UDP. It is similar to the TIAS defined
// in RFC 3890, i.e., it is measured in bits per second and the bitrate is
// calculated over a 1 second window.
AvailableIncomingBitrate float64 `protobuf:"fixed64,18,opt,name=available_incoming_bitrate,json=availableIncomingBitrate,proto3" json:"available_incoming_bitrate,omitempty"`
// CircuitBreakerTriggerCount represents the number of times the circuit breaker
// is triggered for this particular 5-tuple, ceasing transmission.
CircuitBreakerTriggerCount uint32 `protobuf:"varint,19,opt,name=circuit_breaker_trigger_count,json=circuitBreakerTriggerCount,proto3" json:"circuit_breaker_trigger_count,omitempty"`
// RequestsReceived represents the total number of connectivity check requests
// received (including retransmissions). It is impossible for the receiver to
// tell whether the request was sent in order to check connectivity or check
// consent, so all connectivity checks requests are counted here.
RequestsReceived uint64 `protobuf:"varint,20,opt,name=requests_received,json=requestsReceived,proto3" json:"requests_received,omitempty"`
// RequestsSent represents the total number of connectivity check requests
// sent (not including retransmissions).
RequestsSent uint64 `protobuf:"varint,21,opt,name=requests_sent,json=requestsSent,proto3" json:"requests_sent,omitempty"`
// ResponsesReceived represents the total number of connectivity check responses received.
ResponsesReceived uint64 `protobuf:"varint,22,opt,name=responses_received,json=responsesReceived,proto3" json:"responses_received,omitempty"`
// ResponsesSent epresents the total number of connectivity check responses sent.
// Since we cannot distinguish connectivity check requests and consent requests,
// all responses are counted.
ResponsesSent uint64 `protobuf:"varint,23,opt,name=responses_sent,json=responsesSent,proto3" json:"responses_sent,omitempty"`
// RetransmissionsReceived represents the total number of connectivity check
// request retransmissions received.
RetransmissionsReceived uint64 `protobuf:"varint,24,opt,name=retransmissions_received,json=retransmissionsReceived,proto3" json:"retransmissions_received,omitempty"`
// RetransmissionsSent represents the total number of connectivity check
// request retransmissions sent.
RetransmissionsSent uint64 `protobuf:"varint,25,opt,name=retransmissions_sent,json=retransmissionsSent,proto3" json:"retransmissions_sent,omitempty"`
// ConsentRequestsSent represents the total number of consent requests sent.
ConsentRequestsSent uint64 `protobuf:"varint,26,opt,name=consent_requests_sent,json=consentRequestsSent,proto3" json:"consent_requests_sent,omitempty"`
// ConsentExpiredTimestamp represents the timestamp at which the latest valid
// STUN binding response expired.
ConsentExpiredTimestamp *proto.Timestamp `protobuf:"bytes,27,opt,name=consent_expired_timestamp,json=consentExpiredTimestamp,proto3" json:"consent_expired_timestamp,omitempty"`
}
func (x *CandidatePairStats) Reset() {
*x = CandidatePairStats{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_epdisc_candidate_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CandidatePairStats) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CandidatePairStats) ProtoMessage() {}
func (x *CandidatePairStats) ProtoReflect() protoreflect.Message {
mi := &file_feature_epdisc_candidate_proto_msgTypes[3]
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 CandidatePairStats.ProtoReflect.Descriptor instead.
func (*CandidatePairStats) Descriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{3}
}
func (x *CandidatePairStats) GetTimestamp() *proto.Timestamp {
if x != nil {
return x.Timestamp
}
return nil
}
func (x *CandidatePairStats) GetLocalCandidateId() string {
if x != nil {
return x.LocalCandidateId
}
return ""
}
func (x *CandidatePairStats) GetRemoteCandidateId() string {
if x != nil {
return x.RemoteCandidateId
}
return ""
}
func (x *CandidatePairStats) GetState() CandidatePairState {
if x != nil {
return x.State
}
return CandidatePairState_UNSPECIFIED_CANDIDATE_PAIR_STATE
}
func (x *CandidatePairStats) GetNominated() bool {
if x != nil {
return x.Nominated
}
return false
}
func (x *CandidatePairStats) GetPacketsSent() uint32 {
if x != nil {
return x.PacketsSent
}
return 0
}
func (x *CandidatePairStats) GetPacketsReceived() uint32 {
if x != nil {
return x.PacketsReceived
}
return 0
}
func (x *CandidatePairStats) GetBytesSent() uint64 {
if x != nil {
return x.BytesSent
}
return 0
}
func (x *CandidatePairStats) GetBytesReceived() uint64 {
if x != nil {
return x.BytesReceived
}
return 0
}
func (x *CandidatePairStats) GetLastPacketSentTimestamp() *proto.Timestamp {
if x != nil {
return x.LastPacketSentTimestamp
}
return nil
}
func (x *CandidatePairStats) GetLastPacketReceivedTimestamp() *proto.Timestamp {
if x != nil {
return x.LastPacketReceivedTimestamp
}
return nil
}
func (x *CandidatePairStats) GetFirstRequestTimestamp() *proto.Timestamp {
if x != nil {
return x.FirstRequestTimestamp
}
return nil
}
func (x *CandidatePairStats) GetLastRequestTimestamp() *proto.Timestamp {
if x != nil {
return x.LastRequestTimestamp
}
return nil
}
func (x *CandidatePairStats) GetLastResponseTimestamp() *proto.Timestamp {
if x != nil {
return x.LastResponseTimestamp
}
return nil
}
func (x *CandidatePairStats) GetTotalRoundtripTime() float64 {
if x != nil {
return x.TotalRoundtripTime
}
return 0
}
func (x *CandidatePairStats) GetCurrentRoundtripTime() float64 {
if x != nil {
return x.CurrentRoundtripTime
}
return 0
}
func (x *CandidatePairStats) GetAvailableOutgoingBitrate() float64 {
if x != nil {
return x.AvailableOutgoingBitrate
}
return 0
}
func (x *CandidatePairStats) GetAvailableIncomingBitrate() float64 {
if x != nil {
return x.AvailableIncomingBitrate
}
return 0
}
func (x *CandidatePairStats) GetCircuitBreakerTriggerCount() uint32 {
if x != nil {
return x.CircuitBreakerTriggerCount
}
return 0
}
func (x *CandidatePairStats) GetRequestsReceived() uint64 {
if x != nil {
return x.RequestsReceived
}
return 0
}
func (x *CandidatePairStats) GetRequestsSent() uint64 {
if x != nil {
return x.RequestsSent
}
return 0
}
func (x *CandidatePairStats) GetResponsesReceived() uint64 {
if x != nil {
return x.ResponsesReceived
}
return 0
}
func (x *CandidatePairStats) GetResponsesSent() uint64 {
if x != nil {
return x.ResponsesSent
}
return 0
}
func (x *CandidatePairStats) GetRetransmissionsReceived() uint64 {
if x != nil {
return x.RetransmissionsReceived
}
return 0
}
func (x *CandidatePairStats) GetRetransmissionsSent() uint64 {
if x != nil {
return x.RetransmissionsSent
}
return 0
}
func (x *CandidatePairStats) GetConsentRequestsSent() uint64 {
if x != nil {
return x.ConsentRequestsSent
}
return 0
}
func (x *CandidatePairStats) GetConsentExpiredTimestamp() *proto.Timestamp {
if x != nil {
return x.ConsentExpiredTimestamp
}
return nil
}
// CandidateStats contains ICE candidate statistics related to the ICETransport objects.
type CandidateStats struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Timestamp is the timestamp associated with this object.
Timestamp *proto.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// ID is the candidate ID
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// NetworkType represents the type of network interface used by the base of a
// local candidate (the address the ICE agent sends from). Only present for
// local candidates; it's not possible to know what type of network interface
// a remote candidate is using.
//
// Note:
// This stat only tells you about the network interface used by the first "hop";
// it's possible that a connection will be bottlenecked by another type of network.
// For example, when using Wi-Fi tethering, the networkType of the relevant candidate
// would be "wifi", even when the next hop is over a cellular connection.
NetworkType NetworkType `protobuf:"varint,3,opt,name=network_type,json=networkType,proto3,enum=cunicu.epdisc.NetworkType" json:"network_type,omitempty"`
// IP is the IP address of the candidate, allowing for IPv4 addresses and
// IPv6 addresses, but fully qualified domain names (FQDNs) are not allowed.
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
// Port is the port number of the candidate.
Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"`
// CandidateType is the "Type" field of the ICECandidate.
CandidateType CandidateType `protobuf:"varint,6,opt,name=candidate_type,json=candidateType,proto3,enum=cunicu.epdisc.CandidateType" json:"candidate_type,omitempty"`
// Priority is the "Priority" field of the ICECandidate.
Priority uint32 `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"`
// URL is the URL of the TURN or STUN server indicated in the that translated
// this IP address. It is the URL address surfaced in an PeerConnectionICEEvent.
Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
// RelayProtocol is the protocol used by the endpoint to communicate with the
// TURN server. This is only present for local candidates. Valid values for
// the TURN URL protocol is one of udp, tcp, or tls.
RelayProtocol RelayProtocol `protobuf:"varint,9,opt,name=relay_protocol,json=relayProtocol,proto3,enum=cunicu.epdisc.RelayProtocol" json:"relay_protocol,omitempty"`
// Deleted is true if the candidate has been deleted/freed. For host candidates,
// this means that any network resources (typically a socket) associated with the
// candidate have been released. For TURN candidates, this means the TURN allocation
// is no longer active.
//
// Only defined for local candidates. For remote candidates, this property is not applicable.
Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"`
}
func (x *CandidateStats) Reset() {
*x = CandidateStats{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_epdisc_candidate_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CandidateStats) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CandidateStats) ProtoMessage() {}
func (x *CandidateStats) ProtoReflect() protoreflect.Message {
mi := &file_feature_epdisc_candidate_proto_msgTypes[4]
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 CandidateStats.ProtoReflect.Descriptor instead.
func (*CandidateStats) Descriptor() ([]byte, []int) {
return file_feature_epdisc_candidate_proto_rawDescGZIP(), []int{4}
}
func (x *CandidateStats) GetTimestamp() *proto.Timestamp {
if x != nil {
return x.Timestamp
}
return nil
}
func (x *CandidateStats) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *CandidateStats) GetNetworkType() NetworkType {
if x != nil {
return x.NetworkType
}
return NetworkType_UNSPECIFIED_NETWORK_TYPE
}
func (x *CandidateStats) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *CandidateStats) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *CandidateStats) GetCandidateType() CandidateType {
if x != nil {
return x.CandidateType
}
return CandidateType_UNSPECIFIED_CANDIDATE_TYPE
}
func (x *CandidateStats) GetPriority() uint32 {
if x != nil {
return x.Priority
}
return 0
}