forked from HuaweiTech/lattice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heartbeat.pb.go
56 lines (46 loc) · 1.55 KB
/
heartbeat.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
// Code generated by protoc-gen-gogo.
// source: heartbeat.proto
// DO NOT EDIT!
package events
import proto "github.com/gogo/protobuf/proto"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = math.Inf
// / A Heartbeat event both indicates liveness of the emitter, and communicates counts of events processed.
type Heartbeat struct {
SentCount *uint64 `protobuf:"varint,1,req,name=sentCount" json:"sentCount,omitempty"`
ReceivedCount *uint64 `protobuf:"varint,2,req,name=receivedCount" json:"receivedCount,omitempty"`
ErrorCount *uint64 `protobuf:"varint,3,req,name=errorCount" json:"errorCount,omitempty"`
ControlMessageIdentifier *UUID `protobuf:"bytes,4,opt,name=controlMessageIdentifier" json:"controlMessageIdentifier,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Heartbeat) Reset() { *m = Heartbeat{} }
func (m *Heartbeat) String() string { return proto.CompactTextString(m) }
func (*Heartbeat) ProtoMessage() {}
func (m *Heartbeat) GetSentCount() uint64 {
if m != nil && m.SentCount != nil {
return *m.SentCount
}
return 0
}
func (m *Heartbeat) GetReceivedCount() uint64 {
if m != nil && m.ReceivedCount != nil {
return *m.ReceivedCount
}
return 0
}
func (m *Heartbeat) GetErrorCount() uint64 {
if m != nil && m.ErrorCount != nil {
return *m.ErrorCount
}
return 0
}
func (m *Heartbeat) GetControlMessageIdentifier() *UUID {
if m != nil {
return m.ControlMessageIdentifier
}
return nil
}
func init() {
}