Newer
Older
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/bio-routing/bio-rd/protocols/bgp/api/session.proto
import (
fmt "fmt"
api "github.com/bio-routing/bio-rd/net/api"
proto "github.com/golang/protobuf/proto"
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 Session_State int32
const (
Session_Disabled Session_State = 0
Session_Idle Session_State = 1
Session_Connect Session_State = 2
Session_Active Session_State = 3
Session_OpenSent Session_State = 4
Session_OpenConfirmed Session_State = 5
Session_Established Session_State = 6
Session_Ceased Session_State = 7
)
var Session_State_name = map[int32]string{
0: "Disabled",
1: "Idle",
2: "Connect",
3: "Active",
4: "OpenSent",
5: "OpenConfirmed",
6: "Established",
7: "Ceased",
}
var Session_State_value = map[string]int32{
"Disabled": 0,
"Idle": 1,
"Connect": 2,
"Active": 3,
"OpenSent": 4,
"OpenConfirmed": 5,
"Established": 6,
"Ceased": 7,
}
func (x Session_State) String() string {
return proto.EnumName(Session_State_name, int32(x))
}
func (Session_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_5b53032c0bb76d75, []int{0, 0}
}
type Session struct {
LocalAddress *api.IP `protobuf:"bytes,1,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"`
NeighborAddress *api.IP `protobuf:"bytes,2,opt,name=neighbor_address,json=neighborAddress,proto3" json:"neighbor_address,omitempty"`
LocalAsn uint32 `protobuf:"varint,3,opt,name=local_asn,json=localAsn,proto3" json:"local_asn,omitempty"`
PeerAsn uint32 `protobuf:"varint,4,opt,name=peer_asn,json=peerAsn,proto3" json:"peer_asn,omitempty"`
Status Session_State `protobuf:"varint,5,opt,name=status,proto3,enum=bio.bgp.Session_State" json:"status,omitempty"`
Stats *SessionStats `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"`
EstablishedSince uint64 `protobuf:"varint,7,opt,name=established_since,json=establishedSince,proto3" json:"established_since,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Session) Reset() { *m = Session{} }
func (m *Session) String() string { return proto.CompactTextString(m) }
func (*Session) ProtoMessage() {}
func (*Session) Descriptor() ([]byte, []int) {
return fileDescriptor_5b53032c0bb76d75, []int{0}
func (m *Session) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Session.Unmarshal(m, b)
}
func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Session.Marshal(b, m, deterministic)
}
func (m *Session) XXX_Merge(src proto.Message) {
xxx_messageInfo_Session.Merge(m, src)
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
}
func (m *Session) XXX_Size() int {
return xxx_messageInfo_Session.Size(m)
}
func (m *Session) XXX_DiscardUnknown() {
xxx_messageInfo_Session.DiscardUnknown(m)
}
var xxx_messageInfo_Session proto.InternalMessageInfo
func (m *Session) GetLocalAddress() *api.IP {
if m != nil {
return m.LocalAddress
}
return nil
}
func (m *Session) GetNeighborAddress() *api.IP {
if m != nil {
return m.NeighborAddress
}
return nil
}
func (m *Session) GetLocalAsn() uint32 {
if m != nil {
return m.LocalAsn
}
return 0
}
func (m *Session) GetPeerAsn() uint32 {
if m != nil {
return m.PeerAsn
}
return 0
}
func (m *Session) GetStatus() Session_State {
if m != nil {
return m.Status
}
return Session_Disabled
}
func (m *Session) GetStats() *SessionStats {
if m != nil {
return m.Stats
}
return nil
}
func (m *Session) GetEstablishedSince() uint64 {
if m != nil {
return m.EstablishedSince
}
return 0
}
type SessionStats struct {
MessagesIn uint64 `protobuf:"varint,1,opt,name=messages_in,json=messagesIn,proto3" json:"messages_in,omitempty"`
MessagesOut uint64 `protobuf:"varint,2,opt,name=messages_out,json=messagesOut,proto3" json:"messages_out,omitempty"`
Flaps uint64 `protobuf:"varint,3,opt,name=flaps,proto3" json:"flaps,omitempty"`
RoutesReceived uint64 `protobuf:"varint,4,opt,name=routes_received,json=routesReceived,proto3" json:"routes_received,omitempty"`
RoutesImported uint64 `protobuf:"varint,5,opt,name=routes_imported,json=routesImported,proto3" json:"routes_imported,omitempty"`
RoutesExported uint64 `protobuf:"varint,6,opt,name=routes_exported,json=routesExported,proto3" json:"routes_exported,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SessionStats) Reset() { *m = SessionStats{} }
func (m *SessionStats) String() string { return proto.CompactTextString(m) }
func (*SessionStats) ProtoMessage() {}
func (*SessionStats) Descriptor() ([]byte, []int) {
return fileDescriptor_5b53032c0bb76d75, []int{1}
func (m *SessionStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SessionStats.Unmarshal(m, b)
}
func (m *SessionStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SessionStats.Marshal(b, m, deterministic)
}
func (m *SessionStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_SessionStats.Merge(m, src)
}
func (m *SessionStats) XXX_Size() int {
return xxx_messageInfo_SessionStats.Size(m)
}
func (m *SessionStats) XXX_DiscardUnknown() {
xxx_messageInfo_SessionStats.DiscardUnknown(m)
}
var xxx_messageInfo_SessionStats proto.InternalMessageInfo
func (m *SessionStats) GetMessagesIn() uint64 {
func (m *SessionStats) GetMessagesOut() uint64 {
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
}
return 0
}
func (m *SessionStats) GetFlaps() uint64 {
if m != nil {
return m.Flaps
}
return 0
}
func (m *SessionStats) GetRoutesReceived() uint64 {
if m != nil {
return m.RoutesReceived
}
return 0
}
func (m *SessionStats) GetRoutesImported() uint64 {
if m != nil {
return m.RoutesImported
}
return 0
}
func (m *SessionStats) GetRoutesExported() uint64 {
if m != nil {
return m.RoutesExported
}
return 0
}
func init() {
proto.RegisterEnum("bio.bgp.Session_State", Session_State_name, Session_State_value)
proto.RegisterType((*Session)(nil), "bio.bgp.Session")
proto.RegisterType((*SessionStats)(nil), "bio.bgp.SessionStats")
}
func init() {
proto.RegisterFile("github.com/bio-routing/bio-rd/protocols/bgp/api/session.proto", fileDescriptor_5b53032c0bb76d75)
}
var fileDescriptor_5b53032c0bb76d75 = []byte{
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
// 473 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x8e, 0xd3, 0x30,
0x10, 0x86, 0xc9, 0x36, 0x4d, 0xca, 0xb4, 0xdd, 0x66, 0x2d, 0x40, 0x05, 0x0e, 0x94, 0x5e, 0xa8,
0xb4, 0x22, 0x81, 0x45, 0xe2, 0xc6, 0x61, 0x29, 0x7b, 0xe8, 0x69, 0x91, 0x7b, 0xe3, 0x52, 0x39,
0xf1, 0x6c, 0x6a, 0x29, 0xb5, 0xa3, 0x8c, 0x5b, 0xf1, 0x52, 0x3c, 0x15, 0x2f, 0x82, 0xec, 0xa4,
0xa5, 0x02, 0x09, 0x89, 0x9b, 0xe7, 0x9f, 0xef, 0x9f, 0xb1, 0xf5, 0x27, 0xf0, 0xa9, 0x54, 0x76,
0xbb, 0xcf, 0xd3, 0xc2, 0xec, 0xb2, 0x5c, 0x99, 0xb7, 0x8d, 0xd9, 0x5b, 0xa5, 0xcb, 0xf6, 0x2c,
0xb3, 0xba, 0x31, 0xd6, 0x14, 0xa6, 0xa2, 0x2c, 0x2f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