-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
channelz.pb.go
3239 lines (2876 loc) · 120 KB
/
channelz.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.
// source: grpc/channelz/v1/channelz.proto
package grpc_channelz_v1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ChannelConnectivityState_State int32
const (
ChannelConnectivityState_UNKNOWN ChannelConnectivityState_State = 0
ChannelConnectivityState_IDLE ChannelConnectivityState_State = 1
ChannelConnectivityState_CONNECTING ChannelConnectivityState_State = 2
ChannelConnectivityState_READY ChannelConnectivityState_State = 3
ChannelConnectivityState_TRANSIENT_FAILURE ChannelConnectivityState_State = 4
ChannelConnectivityState_SHUTDOWN ChannelConnectivityState_State = 5
)
var ChannelConnectivityState_State_name = map[int32]string{
0: "UNKNOWN",
1: "IDLE",
2: "CONNECTING",
3: "READY",
4: "TRANSIENT_FAILURE",
5: "SHUTDOWN",
}
var ChannelConnectivityState_State_value = map[string]int32{
"UNKNOWN": 0,
"IDLE": 1,
"CONNECTING": 2,
"READY": 3,
"TRANSIENT_FAILURE": 4,
"SHUTDOWN": 5,
}
func (x ChannelConnectivityState_State) String() string {
return proto.EnumName(ChannelConnectivityState_State_name, int32(x))
}
func (ChannelConnectivityState_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{2, 0}
}
// The supported severity levels of trace events.
type ChannelTraceEvent_Severity int32
const (
ChannelTraceEvent_CT_UNKNOWN ChannelTraceEvent_Severity = 0
ChannelTraceEvent_CT_INFO ChannelTraceEvent_Severity = 1
ChannelTraceEvent_CT_WARNING ChannelTraceEvent_Severity = 2
ChannelTraceEvent_CT_ERROR ChannelTraceEvent_Severity = 3
)
var ChannelTraceEvent_Severity_name = map[int32]string{
0: "CT_UNKNOWN",
1: "CT_INFO",
2: "CT_WARNING",
3: "CT_ERROR",
}
var ChannelTraceEvent_Severity_value = map[string]int32{
"CT_UNKNOWN": 0,
"CT_INFO": 1,
"CT_WARNING": 2,
"CT_ERROR": 3,
}
func (x ChannelTraceEvent_Severity) String() string {
return proto.EnumName(ChannelTraceEvent_Severity_name, int32(x))
}
func (ChannelTraceEvent_Severity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{4, 0}
}
// Channel is a logical grouping of channels, subchannels, and sockets.
type Channel struct {
// The identifier for this channel. This should bet set.
Ref *ChannelRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// Data specific to this channel.
Data *ChannelData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// There are no ordering guarantees on the order of channel refs.
// There may not be cycles in the ref graph.
// A channel ref may be present in more than one channel or subchannel.
ChannelRef []*ChannelRef `protobuf:"bytes,3,rep,name=channel_ref,json=channelRef,proto3" json:"channel_ref,omitempty"`
// At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
// There are no ordering guarantees on the order of subchannel refs.
// There may not be cycles in the ref graph.
// A sub channel ref may be present in more than one channel or subchannel.
SubchannelRef []*SubchannelRef `protobuf:"bytes,4,rep,name=subchannel_ref,json=subchannelRef,proto3" json:"subchannel_ref,omitempty"`
// There are no ordering guarantees on the order of sockets.
SocketRef []*SocketRef `protobuf:"bytes,5,rep,name=socket_ref,json=socketRef,proto3" json:"socket_ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Channel) Reset() { *m = Channel{} }
func (m *Channel) String() string { return proto.CompactTextString(m) }
func (*Channel) ProtoMessage() {}
func (*Channel) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{0}
}
func (m *Channel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Channel.Unmarshal(m, b)
}
func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Channel.Marshal(b, m, deterministic)
}
func (m *Channel) XXX_Merge(src proto.Message) {
xxx_messageInfo_Channel.Merge(m, src)
}
func (m *Channel) XXX_Size() int {
return xxx_messageInfo_Channel.Size(m)
}
func (m *Channel) XXX_DiscardUnknown() {
xxx_messageInfo_Channel.DiscardUnknown(m)
}
var xxx_messageInfo_Channel proto.InternalMessageInfo
func (m *Channel) GetRef() *ChannelRef {
if m != nil {
return m.Ref
}
return nil
}
func (m *Channel) GetData() *ChannelData {
if m != nil {
return m.Data
}
return nil
}
func (m *Channel) GetChannelRef() []*ChannelRef {
if m != nil {
return m.ChannelRef
}
return nil
}
func (m *Channel) GetSubchannelRef() []*SubchannelRef {
if m != nil {
return m.SubchannelRef
}
return nil
}
func (m *Channel) GetSocketRef() []*SocketRef {
if m != nil {
return m.SocketRef
}
return nil
}
// Subchannel is a logical grouping of channels, subchannels, and sockets.
// A subchannel is load balanced over by it's ancestor
type Subchannel struct {
// The identifier for this channel.
Ref *SubchannelRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// Data specific to this channel.
Data *ChannelData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// There are no ordering guarantees on the order of channel refs.
// There may not be cycles in the ref graph.
// A channel ref may be present in more than one channel or subchannel.
ChannelRef []*ChannelRef `protobuf:"bytes,3,rep,name=channel_ref,json=channelRef,proto3" json:"channel_ref,omitempty"`
// At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
// There are no ordering guarantees on the order of subchannel refs.
// There may not be cycles in the ref graph.
// A sub channel ref may be present in more than one channel or subchannel.
SubchannelRef []*SubchannelRef `protobuf:"bytes,4,rep,name=subchannel_ref,json=subchannelRef,proto3" json:"subchannel_ref,omitempty"`
// There are no ordering guarantees on the order of sockets.
SocketRef []*SocketRef `protobuf:"bytes,5,rep,name=socket_ref,json=socketRef,proto3" json:"socket_ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Subchannel) Reset() { *m = Subchannel{} }
func (m *Subchannel) String() string { return proto.CompactTextString(m) }
func (*Subchannel) ProtoMessage() {}
func (*Subchannel) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{1}
}
func (m *Subchannel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Subchannel.Unmarshal(m, b)
}
func (m *Subchannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Subchannel.Marshal(b, m, deterministic)
}
func (m *Subchannel) XXX_Merge(src proto.Message) {
xxx_messageInfo_Subchannel.Merge(m, src)
}
func (m *Subchannel) XXX_Size() int {
return xxx_messageInfo_Subchannel.Size(m)
}
func (m *Subchannel) XXX_DiscardUnknown() {
xxx_messageInfo_Subchannel.DiscardUnknown(m)
}
var xxx_messageInfo_Subchannel proto.InternalMessageInfo
func (m *Subchannel) GetRef() *SubchannelRef {
if m != nil {
return m.Ref
}
return nil
}
func (m *Subchannel) GetData() *ChannelData {
if m != nil {
return m.Data
}
return nil
}
func (m *Subchannel) GetChannelRef() []*ChannelRef {
if m != nil {
return m.ChannelRef
}
return nil
}
func (m *Subchannel) GetSubchannelRef() []*SubchannelRef {
if m != nil {
return m.SubchannelRef
}
return nil
}
func (m *Subchannel) GetSocketRef() []*SocketRef {
if m != nil {
return m.SocketRef
}
return nil
}
// These come from the specified states in this document:
// https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
type ChannelConnectivityState struct {
State ChannelConnectivityState_State `protobuf:"varint,1,opt,name=state,proto3,enum=grpc.channelz.v1.ChannelConnectivityState_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChannelConnectivityState) Reset() { *m = ChannelConnectivityState{} }
func (m *ChannelConnectivityState) String() string { return proto.CompactTextString(m) }
func (*ChannelConnectivityState) ProtoMessage() {}
func (*ChannelConnectivityState) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{2}
}
func (m *ChannelConnectivityState) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChannelConnectivityState.Unmarshal(m, b)
}
func (m *ChannelConnectivityState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChannelConnectivityState.Marshal(b, m, deterministic)
}
func (m *ChannelConnectivityState) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChannelConnectivityState.Merge(m, src)
}
func (m *ChannelConnectivityState) XXX_Size() int {
return xxx_messageInfo_ChannelConnectivityState.Size(m)
}
func (m *ChannelConnectivityState) XXX_DiscardUnknown() {
xxx_messageInfo_ChannelConnectivityState.DiscardUnknown(m)
}
var xxx_messageInfo_ChannelConnectivityState proto.InternalMessageInfo
func (m *ChannelConnectivityState) GetState() ChannelConnectivityState_State {
if m != nil {
return m.State
}
return ChannelConnectivityState_UNKNOWN
}
// Channel data is data related to a specific Channel or Subchannel.
type ChannelData struct {
// The connectivity state of the channel or subchannel. Implementations
// should always set this.
State *ChannelConnectivityState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
// The target this channel originally tried to connect to. May be absent
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
// A trace of recent events on the channel. May be absent.
Trace *ChannelTrace `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"`
// The number of calls started on the channel
CallsStarted int64 `protobuf:"varint,4,opt,name=calls_started,json=callsStarted,proto3" json:"calls_started,omitempty"`
// The number of calls that have completed with an OK status
CallsSucceeded int64 `protobuf:"varint,5,opt,name=calls_succeeded,json=callsSucceeded,proto3" json:"calls_succeeded,omitempty"`
// The number of calls that have completed with a non-OK status
CallsFailed int64 `protobuf:"varint,6,opt,name=calls_failed,json=callsFailed,proto3" json:"calls_failed,omitempty"`
// The last time a call was started on the channel.
LastCallStartedTimestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=last_call_started_timestamp,json=lastCallStartedTimestamp,proto3" json:"last_call_started_timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChannelData) Reset() { *m = ChannelData{} }
func (m *ChannelData) String() string { return proto.CompactTextString(m) }
func (*ChannelData) ProtoMessage() {}
func (*ChannelData) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{3}
}
func (m *ChannelData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChannelData.Unmarshal(m, b)
}
func (m *ChannelData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChannelData.Marshal(b, m, deterministic)
}
func (m *ChannelData) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChannelData.Merge(m, src)
}
func (m *ChannelData) XXX_Size() int {
return xxx_messageInfo_ChannelData.Size(m)
}
func (m *ChannelData) XXX_DiscardUnknown() {
xxx_messageInfo_ChannelData.DiscardUnknown(m)
}
var xxx_messageInfo_ChannelData proto.InternalMessageInfo
func (m *ChannelData) GetState() *ChannelConnectivityState {
if m != nil {
return m.State
}
return nil
}
func (m *ChannelData) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
func (m *ChannelData) GetTrace() *ChannelTrace {
if m != nil {
return m.Trace
}
return nil
}
func (m *ChannelData) GetCallsStarted() int64 {
if m != nil {
return m.CallsStarted
}
return 0
}
func (m *ChannelData) GetCallsSucceeded() int64 {
if m != nil {
return m.CallsSucceeded
}
return 0
}
func (m *ChannelData) GetCallsFailed() int64 {
if m != nil {
return m.CallsFailed
}
return 0
}
func (m *ChannelData) GetLastCallStartedTimestamp() *timestamp.Timestamp {
if m != nil {
return m.LastCallStartedTimestamp
}
return nil
}
// A trace event is an interesting thing that happened to a channel or
// subchannel, such as creation, address resolution, subchannel creation, etc.
type ChannelTraceEvent struct {
// High level description of the event.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// the severity of the trace event
Severity ChannelTraceEvent_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grpc.channelz.v1.ChannelTraceEvent_Severity" json:"severity,omitempty"`
// When this event occurred.
Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// ref of referenced channel or subchannel.
// Optional, only present if this event refers to a child object. For example,
// this field would be filled if this trace event was for a subchannel being
// created.
//
// Types that are valid to be assigned to ChildRef:
// *ChannelTraceEvent_ChannelRef
// *ChannelTraceEvent_SubchannelRef
ChildRef isChannelTraceEvent_ChildRef `protobuf_oneof:"child_ref"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChannelTraceEvent) Reset() { *m = ChannelTraceEvent{} }
func (m *ChannelTraceEvent) String() string { return proto.CompactTextString(m) }
func (*ChannelTraceEvent) ProtoMessage() {}
func (*ChannelTraceEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{4}
}
func (m *ChannelTraceEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChannelTraceEvent.Unmarshal(m, b)
}
func (m *ChannelTraceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChannelTraceEvent.Marshal(b, m, deterministic)
}
func (m *ChannelTraceEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChannelTraceEvent.Merge(m, src)
}
func (m *ChannelTraceEvent) XXX_Size() int {
return xxx_messageInfo_ChannelTraceEvent.Size(m)
}
func (m *ChannelTraceEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ChannelTraceEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ChannelTraceEvent proto.InternalMessageInfo
func (m *ChannelTraceEvent) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ChannelTraceEvent) GetSeverity() ChannelTraceEvent_Severity {
if m != nil {
return m.Severity
}
return ChannelTraceEvent_CT_UNKNOWN
}
func (m *ChannelTraceEvent) GetTimestamp() *timestamp.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
type isChannelTraceEvent_ChildRef interface {
isChannelTraceEvent_ChildRef()
}
type ChannelTraceEvent_ChannelRef struct {
ChannelRef *ChannelRef `protobuf:"bytes,4,opt,name=channel_ref,json=channelRef,proto3,oneof"`
}
type ChannelTraceEvent_SubchannelRef struct {
SubchannelRef *SubchannelRef `protobuf:"bytes,5,opt,name=subchannel_ref,json=subchannelRef,proto3,oneof"`
}
func (*ChannelTraceEvent_ChannelRef) isChannelTraceEvent_ChildRef() {}
func (*ChannelTraceEvent_SubchannelRef) isChannelTraceEvent_ChildRef() {}
func (m *ChannelTraceEvent) GetChildRef() isChannelTraceEvent_ChildRef {
if m != nil {
return m.ChildRef
}
return nil
}
func (m *ChannelTraceEvent) GetChannelRef() *ChannelRef {
if x, ok := m.GetChildRef().(*ChannelTraceEvent_ChannelRef); ok {
return x.ChannelRef
}
return nil
}
func (m *ChannelTraceEvent) GetSubchannelRef() *SubchannelRef {
if x, ok := m.GetChildRef().(*ChannelTraceEvent_SubchannelRef); ok {
return x.SubchannelRef
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ChannelTraceEvent) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ChannelTraceEvent_ChannelRef)(nil),
(*ChannelTraceEvent_SubchannelRef)(nil),
}
}
// ChannelTrace represents the recent events that have occurred on the channel.
type ChannelTrace struct {
// Number of events ever logged in this tracing object. This can differ from
// events.size() because events can be overwritten or garbage collected by
// implementations.
NumEventsLogged int64 `protobuf:"varint,1,opt,name=num_events_logged,json=numEventsLogged,proto3" json:"num_events_logged,omitempty"`
// Time that this channel was created.
CreationTimestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"`
// List of events that have occurred on this channel.
Events []*ChannelTraceEvent `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChannelTrace) Reset() { *m = ChannelTrace{} }
func (m *ChannelTrace) String() string { return proto.CompactTextString(m) }
func (*ChannelTrace) ProtoMessage() {}
func (*ChannelTrace) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{5}
}
func (m *ChannelTrace) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChannelTrace.Unmarshal(m, b)
}
func (m *ChannelTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChannelTrace.Marshal(b, m, deterministic)
}
func (m *ChannelTrace) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChannelTrace.Merge(m, src)
}
func (m *ChannelTrace) XXX_Size() int {
return xxx_messageInfo_ChannelTrace.Size(m)
}
func (m *ChannelTrace) XXX_DiscardUnknown() {
xxx_messageInfo_ChannelTrace.DiscardUnknown(m)
}
var xxx_messageInfo_ChannelTrace proto.InternalMessageInfo
func (m *ChannelTrace) GetNumEventsLogged() int64 {
if m != nil {
return m.NumEventsLogged
}
return 0
}
func (m *ChannelTrace) GetCreationTimestamp() *timestamp.Timestamp {
if m != nil {
return m.CreationTimestamp
}
return nil
}
func (m *ChannelTrace) GetEvents() []*ChannelTraceEvent {
if m != nil {
return m.Events
}
return nil
}
// ChannelRef is a reference to a Channel.
type ChannelRef struct {
// The globally unique id for this channel. Must be a positive number.
ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// An optional name associated with the channel.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChannelRef) Reset() { *m = ChannelRef{} }
func (m *ChannelRef) String() string { return proto.CompactTextString(m) }
func (*ChannelRef) ProtoMessage() {}
func (*ChannelRef) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{6}
}
func (m *ChannelRef) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChannelRef.Unmarshal(m, b)
}
func (m *ChannelRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChannelRef.Marshal(b, m, deterministic)
}
func (m *ChannelRef) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChannelRef.Merge(m, src)
}
func (m *ChannelRef) XXX_Size() int {
return xxx_messageInfo_ChannelRef.Size(m)
}
func (m *ChannelRef) XXX_DiscardUnknown() {
xxx_messageInfo_ChannelRef.DiscardUnknown(m)
}
var xxx_messageInfo_ChannelRef proto.InternalMessageInfo
func (m *ChannelRef) GetChannelId() int64 {
if m != nil {
return m.ChannelId
}
return 0
}
func (m *ChannelRef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// SubchannelRef is a reference to a Subchannel.
type SubchannelRef struct {
// The globally unique id for this subchannel. Must be a positive number.
SubchannelId int64 `protobuf:"varint,7,opt,name=subchannel_id,json=subchannelId,proto3" json:"subchannel_id,omitempty"`
// An optional name associated with the subchannel.
Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubchannelRef) Reset() { *m = SubchannelRef{} }
func (m *SubchannelRef) String() string { return proto.CompactTextString(m) }
func (*SubchannelRef) ProtoMessage() {}
func (*SubchannelRef) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{7}
}
func (m *SubchannelRef) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubchannelRef.Unmarshal(m, b)
}
func (m *SubchannelRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubchannelRef.Marshal(b, m, deterministic)
}
func (m *SubchannelRef) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubchannelRef.Merge(m, src)
}
func (m *SubchannelRef) XXX_Size() int {
return xxx_messageInfo_SubchannelRef.Size(m)
}
func (m *SubchannelRef) XXX_DiscardUnknown() {
xxx_messageInfo_SubchannelRef.DiscardUnknown(m)
}
var xxx_messageInfo_SubchannelRef proto.InternalMessageInfo
func (m *SubchannelRef) GetSubchannelId() int64 {
if m != nil {
return m.SubchannelId
}
return 0
}
func (m *SubchannelRef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// SocketRef is a reference to a Socket.
type SocketRef struct {
// The globally unique id for this socket. Must be a positive number.
SocketId int64 `protobuf:"varint,3,opt,name=socket_id,json=socketId,proto3" json:"socket_id,omitempty"`
// An optional name associated with the socket.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SocketRef) Reset() { *m = SocketRef{} }
func (m *SocketRef) String() string { return proto.CompactTextString(m) }
func (*SocketRef) ProtoMessage() {}
func (*SocketRef) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{8}
}
func (m *SocketRef) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SocketRef.Unmarshal(m, b)
}
func (m *SocketRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SocketRef.Marshal(b, m, deterministic)
}
func (m *SocketRef) XXX_Merge(src proto.Message) {
xxx_messageInfo_SocketRef.Merge(m, src)
}
func (m *SocketRef) XXX_Size() int {
return xxx_messageInfo_SocketRef.Size(m)
}
func (m *SocketRef) XXX_DiscardUnknown() {
xxx_messageInfo_SocketRef.DiscardUnknown(m)
}
var xxx_messageInfo_SocketRef proto.InternalMessageInfo
func (m *SocketRef) GetSocketId() int64 {
if m != nil {
return m.SocketId
}
return 0
}
func (m *SocketRef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// ServerRef is a reference to a Server.
type ServerRef struct {
// A globally unique identifier for this server. Must be a positive number.
ServerId int64 `protobuf:"varint,5,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
// An optional name associated with the server.
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerRef) Reset() { *m = ServerRef{} }
func (m *ServerRef) String() string { return proto.CompactTextString(m) }
func (*ServerRef) ProtoMessage() {}
func (*ServerRef) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{9}
}
func (m *ServerRef) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerRef.Unmarshal(m, b)
}
func (m *ServerRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerRef.Marshal(b, m, deterministic)
}
func (m *ServerRef) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerRef.Merge(m, src)
}
func (m *ServerRef) XXX_Size() int {
return xxx_messageInfo_ServerRef.Size(m)
}
func (m *ServerRef) XXX_DiscardUnknown() {
xxx_messageInfo_ServerRef.DiscardUnknown(m)
}
var xxx_messageInfo_ServerRef proto.InternalMessageInfo
func (m *ServerRef) GetServerId() int64 {
if m != nil {
return m.ServerId
}
return 0
}
func (m *ServerRef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Server represents a single server. There may be multiple servers in a single
// program.
type Server struct {
// The identifier for a Server. This should be set.
Ref *ServerRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// The associated data of the Server.
Data *ServerData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// The sockets that the server is listening on. There are no ordering
// guarantees. This may be absent.
ListenSocket []*SocketRef `protobuf:"bytes,3,rep,name=listen_socket,json=listenSocket,proto3" json:"listen_socket,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Server) Reset() { *m = Server{} }
func (m *Server) String() string { return proto.CompactTextString(m) }
func (*Server) ProtoMessage() {}
func (*Server) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{10}
}
func (m *Server) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Server.Unmarshal(m, b)
}
func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Server.Marshal(b, m, deterministic)
}
func (m *Server) XXX_Merge(src proto.Message) {
xxx_messageInfo_Server.Merge(m, src)
}
func (m *Server) XXX_Size() int {
return xxx_messageInfo_Server.Size(m)
}
func (m *Server) XXX_DiscardUnknown() {
xxx_messageInfo_Server.DiscardUnknown(m)
}
var xxx_messageInfo_Server proto.InternalMessageInfo
func (m *Server) GetRef() *ServerRef {
if m != nil {
return m.Ref
}
return nil
}
func (m *Server) GetData() *ServerData {
if m != nil {
return m.Data
}
return nil
}
func (m *Server) GetListenSocket() []*SocketRef {
if m != nil {
return m.ListenSocket
}
return nil
}
// ServerData is data for a specific Server.
type ServerData struct {
// A trace of recent events on the server. May be absent.
Trace *ChannelTrace `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"`
// The number of incoming calls started on the server
CallsStarted int64 `protobuf:"varint,2,opt,name=calls_started,json=callsStarted,proto3" json:"calls_started,omitempty"`
// The number of incoming calls that have completed with an OK status
CallsSucceeded int64 `protobuf:"varint,3,opt,name=calls_succeeded,json=callsSucceeded,proto3" json:"calls_succeeded,omitempty"`
// The number of incoming calls that have a completed with a non-OK status
CallsFailed int64 `protobuf:"varint,4,opt,name=calls_failed,json=callsFailed,proto3" json:"calls_failed,omitempty"`
// The last time a call was started on the server.
LastCallStartedTimestamp *timestamp.Timestamp `protobuf:"bytes,5,opt,name=last_call_started_timestamp,json=lastCallStartedTimestamp,proto3" json:"last_call_started_timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerData) Reset() { *m = ServerData{} }
func (m *ServerData) String() string { return proto.CompactTextString(m) }
func (*ServerData) ProtoMessage() {}
func (*ServerData) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{11}
}
func (m *ServerData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerData.Unmarshal(m, b)
}
func (m *ServerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerData.Marshal(b, m, deterministic)
}
func (m *ServerData) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerData.Merge(m, src)
}
func (m *ServerData) XXX_Size() int {
return xxx_messageInfo_ServerData.Size(m)
}
func (m *ServerData) XXX_DiscardUnknown() {
xxx_messageInfo_ServerData.DiscardUnknown(m)
}
var xxx_messageInfo_ServerData proto.InternalMessageInfo
func (m *ServerData) GetTrace() *ChannelTrace {
if m != nil {
return m.Trace
}
return nil
}
func (m *ServerData) GetCallsStarted() int64 {
if m != nil {
return m.CallsStarted
}
return 0
}
func (m *ServerData) GetCallsSucceeded() int64 {
if m != nil {
return m.CallsSucceeded
}
return 0
}
func (m *ServerData) GetCallsFailed() int64 {
if m != nil {
return m.CallsFailed
}
return 0
}
func (m *ServerData) GetLastCallStartedTimestamp() *timestamp.Timestamp {
if m != nil {
return m.LastCallStartedTimestamp
}
return nil
}
// Information about an actual connection. Pronounced "sock-ay".
type Socket struct {
// The identifier for the Socket.
Ref *SocketRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// Data specific to this Socket.
Data *SocketData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// The locally bound address.
Local *Address `protobuf:"bytes,3,opt,name=local,proto3" json:"local,omitempty"`
// The remote bound address. May be absent.
Remote *Address `protobuf:"bytes,4,opt,name=remote,proto3" json:"remote,omitempty"`
// Security details for this socket. May be absent if not available, or
// there is no security on the socket.
Security *Security `protobuf:"bytes,5,opt,name=security,proto3" json:"security,omitempty"`
// Optional, represents the name of the remote endpoint, if different than
// the original target name.
RemoteName string `protobuf:"bytes,6,opt,name=remote_name,json=remoteName,proto3" json:"remote_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Socket) Reset() { *m = Socket{} }
func (m *Socket) String() string { return proto.CompactTextString(m) }
func (*Socket) ProtoMessage() {}
func (*Socket) Descriptor() ([]byte, []int) {
return fileDescriptor_6ee37dfd35a8ab00, []int{12}
}
func (m *Socket) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Socket.Unmarshal(m, b)
}
func (m *Socket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Socket.Marshal(b, m, deterministic)
}
func (m *Socket) XXX_Merge(src proto.Message) {
xxx_messageInfo_Socket.Merge(m, src)
}
func (m *Socket) XXX_Size() int {
return xxx_messageInfo_Socket.Size(m)
}
func (m *Socket) XXX_DiscardUnknown() {
xxx_messageInfo_Socket.DiscardUnknown(m)
}
var xxx_messageInfo_Socket proto.InternalMessageInfo
func (m *Socket) GetRef() *SocketRef {
if m != nil {
return m.Ref
}
return nil
}
func (m *Socket) GetData() *SocketData {
if m != nil {
return m.Data
}
return nil
}
func (m *Socket) GetLocal() *Address {
if m != nil {
return m.Local
}
return nil
}
func (m *Socket) GetRemote() *Address {
if m != nil {
return m.Remote
}
return nil
}
func (m *Socket) GetSecurity() *Security {
if m != nil {
return m.Security
}
return nil
}
func (m *Socket) GetRemoteName() string {
if m != nil {
return m.RemoteName
}
return ""