github.com/osrg/gobgp@v2.0.0+incompatible/api/capability.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: capability.proto 3 // DO NOT EDIT! 4 5 package gobgpapi 6 7 import proto "github.com/golang/protobuf/proto" 8 import fmt "fmt" 9 import math "math" 10 11 // Reference imports to suppress errors if they are not otherwise used. 12 var _ = proto.Marshal 13 var _ = fmt.Errorf 14 var _ = math.Inf 15 16 type AddPathMode int32 17 18 const ( 19 AddPathMode_MODE_NONE AddPathMode = 0 20 AddPathMode_MODE_RECEIVE AddPathMode = 1 21 AddPathMode_MODE_SEND AddPathMode = 2 22 AddPathMode_MODE_BOTH AddPathMode = 3 23 ) 24 25 var AddPathMode_name = map[int32]string{ 26 0: "MODE_NONE", 27 1: "MODE_RECEIVE", 28 2: "MODE_SEND", 29 3: "MODE_BOTH", 30 } 31 var AddPathMode_value = map[string]int32{ 32 "MODE_NONE": 0, 33 "MODE_RECEIVE": 1, 34 "MODE_SEND": 2, 35 "MODE_BOTH": 3, 36 } 37 38 func (x AddPathMode) String() string { 39 return proto.EnumName(AddPathMode_name, int32(x)) 40 } 41 func (AddPathMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } 42 43 type MultiProtocolCapability struct { 44 Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"` 45 } 46 47 func (m *MultiProtocolCapability) Reset() { *m = MultiProtocolCapability{} } 48 func (m *MultiProtocolCapability) String() string { return proto.CompactTextString(m) } 49 func (*MultiProtocolCapability) ProtoMessage() {} 50 func (*MultiProtocolCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } 51 52 func (m *MultiProtocolCapability) GetFamily() *Family { 53 if m != nil { 54 return m.Family 55 } 56 return nil 57 } 58 59 type RouteRefreshCapability struct { 60 } 61 62 func (m *RouteRefreshCapability) Reset() { *m = RouteRefreshCapability{} } 63 func (m *RouteRefreshCapability) String() string { return proto.CompactTextString(m) } 64 func (*RouteRefreshCapability) ProtoMessage() {} 65 func (*RouteRefreshCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} } 66 67 type CarryingLabelInfoCapability struct { 68 } 69 70 func (m *CarryingLabelInfoCapability) Reset() { *m = CarryingLabelInfoCapability{} } 71 func (m *CarryingLabelInfoCapability) String() string { return proto.CompactTextString(m) } 72 func (*CarryingLabelInfoCapability) ProtoMessage() {} 73 func (*CarryingLabelInfoCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} } 74 75 type ExtendedNexthopCapabilityTuple struct { 76 NlriFamily *Family `protobuf:"bytes,1,opt,name=nlri_family,json=nlriFamily" json:"nlri_family,omitempty"` 77 // Nexthop AFI must be either 78 // gobgp.IPv4 or 79 // gobgp.IPv6. 80 NexthopFamily *Family `protobuf:"bytes,2,opt,name=nexthop_family,json=nexthopFamily" json:"nexthop_family,omitempty"` 81 } 82 83 func (m *ExtendedNexthopCapabilityTuple) Reset() { *m = ExtendedNexthopCapabilityTuple{} } 84 func (m *ExtendedNexthopCapabilityTuple) String() string { return proto.CompactTextString(m) } 85 func (*ExtendedNexthopCapabilityTuple) ProtoMessage() {} 86 func (*ExtendedNexthopCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} } 87 88 func (m *ExtendedNexthopCapabilityTuple) GetNlriFamily() *Family { 89 if m != nil { 90 return m.NlriFamily 91 } 92 return nil 93 } 94 95 func (m *ExtendedNexthopCapabilityTuple) GetNexthopFamily() *Family { 96 if m != nil { 97 return m.NexthopFamily 98 } 99 return nil 100 } 101 102 type ExtendedNexthopCapability struct { 103 Tuples []*ExtendedNexthopCapabilityTuple `protobuf:"bytes,1,rep,name=tuples" json:"tuples,omitempty"` 104 } 105 106 func (m *ExtendedNexthopCapability) Reset() { *m = ExtendedNexthopCapability{} } 107 func (m *ExtendedNexthopCapability) String() string { return proto.CompactTextString(m) } 108 func (*ExtendedNexthopCapability) ProtoMessage() {} 109 func (*ExtendedNexthopCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} } 110 111 func (m *ExtendedNexthopCapability) GetTuples() []*ExtendedNexthopCapabilityTuple { 112 if m != nil { 113 return m.Tuples 114 } 115 return nil 116 } 117 118 type GracefulRestartCapabilityTuple struct { 119 Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"` 120 Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"` 121 } 122 123 func (m *GracefulRestartCapabilityTuple) Reset() { *m = GracefulRestartCapabilityTuple{} } 124 func (m *GracefulRestartCapabilityTuple) String() string { return proto.CompactTextString(m) } 125 func (*GracefulRestartCapabilityTuple) ProtoMessage() {} 126 func (*GracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} } 127 128 func (m *GracefulRestartCapabilityTuple) GetFamily() *Family { 129 if m != nil { 130 return m.Family 131 } 132 return nil 133 } 134 135 func (m *GracefulRestartCapabilityTuple) GetFlags() uint32 { 136 if m != nil { 137 return m.Flags 138 } 139 return 0 140 } 141 142 type GracefulRestartCapability struct { 143 Flags uint32 `protobuf:"varint,1,opt,name=flags" json:"flags,omitempty"` 144 Time uint32 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"` 145 Tuples []*GracefulRestartCapabilityTuple `protobuf:"bytes,3,rep,name=tuples" json:"tuples,omitempty"` 146 } 147 148 func (m *GracefulRestartCapability) Reset() { *m = GracefulRestartCapability{} } 149 func (m *GracefulRestartCapability) String() string { return proto.CompactTextString(m) } 150 func (*GracefulRestartCapability) ProtoMessage() {} 151 func (*GracefulRestartCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} } 152 153 func (m *GracefulRestartCapability) GetFlags() uint32 { 154 if m != nil { 155 return m.Flags 156 } 157 return 0 158 } 159 160 func (m *GracefulRestartCapability) GetTime() uint32 { 161 if m != nil { 162 return m.Time 163 } 164 return 0 165 } 166 167 func (m *GracefulRestartCapability) GetTuples() []*GracefulRestartCapabilityTuple { 168 if m != nil { 169 return m.Tuples 170 } 171 return nil 172 } 173 174 type FourOctetASNumberCapability struct { 175 As uint32 `protobuf:"varint,1,opt,name=as" json:"as,omitempty"` 176 } 177 178 func (m *FourOctetASNumberCapability) Reset() { *m = FourOctetASNumberCapability{} } 179 func (m *FourOctetASNumberCapability) String() string { return proto.CompactTextString(m) } 180 func (*FourOctetASNumberCapability) ProtoMessage() {} 181 func (*FourOctetASNumberCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} } 182 183 func (m *FourOctetASNumberCapability) GetAs() uint32 { 184 if m != nil { 185 return m.As 186 } 187 return 0 188 } 189 190 type AddPathCapabilityTuple struct { 191 Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"` 192 Mode AddPathMode `protobuf:"varint,2,opt,name=mode,enum=gobgpapi.AddPathMode" json:"mode,omitempty"` 193 } 194 195 func (m *AddPathCapabilityTuple) Reset() { *m = AddPathCapabilityTuple{} } 196 func (m *AddPathCapabilityTuple) String() string { return proto.CompactTextString(m) } 197 func (*AddPathCapabilityTuple) ProtoMessage() {} 198 func (*AddPathCapabilityTuple) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} } 199 200 func (m *AddPathCapabilityTuple) GetFamily() *Family { 201 if m != nil { 202 return m.Family 203 } 204 return nil 205 } 206 207 func (m *AddPathCapabilityTuple) GetMode() AddPathMode { 208 if m != nil { 209 return m.Mode 210 } 211 return AddPathMode_MODE_NONE 212 } 213 214 type AddPathCapability struct { 215 Tuples []*AddPathCapabilityTuple `protobuf:"bytes,1,rep,name=tuples" json:"tuples,omitempty"` 216 } 217 218 func (m *AddPathCapability) Reset() { *m = AddPathCapability{} } 219 func (m *AddPathCapability) String() string { return proto.CompactTextString(m) } 220 func (*AddPathCapability) ProtoMessage() {} 221 func (*AddPathCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} } 222 223 func (m *AddPathCapability) GetTuples() []*AddPathCapabilityTuple { 224 if m != nil { 225 return m.Tuples 226 } 227 return nil 228 } 229 230 type EnhancedRouteRefreshCapability struct { 231 } 232 233 func (m *EnhancedRouteRefreshCapability) Reset() { *m = EnhancedRouteRefreshCapability{} } 234 func (m *EnhancedRouteRefreshCapability) String() string { return proto.CompactTextString(m) } 235 func (*EnhancedRouteRefreshCapability) ProtoMessage() {} 236 func (*EnhancedRouteRefreshCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} } 237 238 type LongLivedGracefulRestartCapabilityTuple struct { 239 Family *Family `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"` 240 Flags uint32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"` 241 Time uint32 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"` 242 } 243 244 func (m *LongLivedGracefulRestartCapabilityTuple) Reset() { 245 *m = LongLivedGracefulRestartCapabilityTuple{} 246 } 247 func (m *LongLivedGracefulRestartCapabilityTuple) String() string { return proto.CompactTextString(m) } 248 func (*LongLivedGracefulRestartCapabilityTuple) ProtoMessage() {} 249 func (*LongLivedGracefulRestartCapabilityTuple) Descriptor() ([]byte, []int) { 250 return fileDescriptor2, []int{11} 251 } 252 253 func (m *LongLivedGracefulRestartCapabilityTuple) GetFamily() *Family { 254 if m != nil { 255 return m.Family 256 } 257 return nil 258 } 259 260 func (m *LongLivedGracefulRestartCapabilityTuple) GetFlags() uint32 { 261 if m != nil { 262 return m.Flags 263 } 264 return 0 265 } 266 267 func (m *LongLivedGracefulRestartCapabilityTuple) GetTime() uint32 { 268 if m != nil { 269 return m.Time 270 } 271 return 0 272 } 273 274 type LongLivedGracefulRestartCapability struct { 275 Tuples []*LongLivedGracefulRestartCapabilityTuple `protobuf:"bytes,1,rep,name=tuples" json:"tuples,omitempty"` 276 } 277 278 func (m *LongLivedGracefulRestartCapability) Reset() { *m = LongLivedGracefulRestartCapability{} } 279 func (m *LongLivedGracefulRestartCapability) String() string { return proto.CompactTextString(m) } 280 func (*LongLivedGracefulRestartCapability) ProtoMessage() {} 281 func (*LongLivedGracefulRestartCapability) Descriptor() ([]byte, []int) { 282 return fileDescriptor2, []int{12} 283 } 284 285 func (m *LongLivedGracefulRestartCapability) GetTuples() []*LongLivedGracefulRestartCapabilityTuple { 286 if m != nil { 287 return m.Tuples 288 } 289 return nil 290 } 291 292 type RouteRefreshCiscoCapability struct { 293 } 294 295 func (m *RouteRefreshCiscoCapability) Reset() { *m = RouteRefreshCiscoCapability{} } 296 func (m *RouteRefreshCiscoCapability) String() string { return proto.CompactTextString(m) } 297 func (*RouteRefreshCiscoCapability) ProtoMessage() {} 298 func (*RouteRefreshCiscoCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{13} } 299 300 type UnknownCapability struct { 301 Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` 302 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 303 } 304 305 func (m *UnknownCapability) Reset() { *m = UnknownCapability{} } 306 func (m *UnknownCapability) String() string { return proto.CompactTextString(m) } 307 func (*UnknownCapability) ProtoMessage() {} 308 func (*UnknownCapability) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{14} } 309 310 func (m *UnknownCapability) GetCode() uint32 { 311 if m != nil { 312 return m.Code 313 } 314 return 0 315 } 316 317 func (m *UnknownCapability) GetValue() []byte { 318 if m != nil { 319 return m.Value 320 } 321 return nil 322 } 323 324 func init() { 325 proto.RegisterType((*MultiProtocolCapability)(nil), "gobgpapi.MultiProtocolCapability") 326 proto.RegisterType((*RouteRefreshCapability)(nil), "gobgpapi.RouteRefreshCapability") 327 proto.RegisterType((*CarryingLabelInfoCapability)(nil), "gobgpapi.CarryingLabelInfoCapability") 328 proto.RegisterType((*ExtendedNexthopCapabilityTuple)(nil), "gobgpapi.ExtendedNexthopCapabilityTuple") 329 proto.RegisterType((*ExtendedNexthopCapability)(nil), "gobgpapi.ExtendedNexthopCapability") 330 proto.RegisterType((*GracefulRestartCapabilityTuple)(nil), "gobgpapi.GracefulRestartCapabilityTuple") 331 proto.RegisterType((*GracefulRestartCapability)(nil), "gobgpapi.GracefulRestartCapability") 332 proto.RegisterType((*FourOctetASNumberCapability)(nil), "gobgpapi.FourOctetASNumberCapability") 333 proto.RegisterType((*AddPathCapabilityTuple)(nil), "gobgpapi.AddPathCapabilityTuple") 334 proto.RegisterType((*AddPathCapability)(nil), "gobgpapi.AddPathCapability") 335 proto.RegisterType((*EnhancedRouteRefreshCapability)(nil), "gobgpapi.EnhancedRouteRefreshCapability") 336 proto.RegisterType((*LongLivedGracefulRestartCapabilityTuple)(nil), "gobgpapi.LongLivedGracefulRestartCapabilityTuple") 337 proto.RegisterType((*LongLivedGracefulRestartCapability)(nil), "gobgpapi.LongLivedGracefulRestartCapability") 338 proto.RegisterType((*RouteRefreshCiscoCapability)(nil), "gobgpapi.RouteRefreshCiscoCapability") 339 proto.RegisterType((*UnknownCapability)(nil), "gobgpapi.UnknownCapability") 340 proto.RegisterEnum("gobgpapi.AddPathMode", AddPathMode_name, AddPathMode_value) 341 } 342 343 func init() { proto.RegisterFile("capability.proto", fileDescriptor2) } 344 345 var fileDescriptor2 = []byte{ 346 // 520 bytes of a gzipped FileDescriptorProto 347 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4d, 0x6f, 0xd3, 0x40, 348 0x10, 0xc5, 0x49, 0x88, 0x60, 0xd2, 0x44, 0xee, 0x0a, 0x4a, 0x4a, 0xd4, 0x28, 0xda, 0x0b, 0x01, 349 0x89, 0x48, 0x0d, 0x07, 0xb8, 0x20, 0x51, 0x52, 0x17, 0x22, 0xe5, 0xa3, 0x72, 0x0b, 0x37, 0x54, 350 0x36, 0xf6, 0xc6, 0x59, 0xb1, 0xde, 0xb5, 0xec, 0x75, 0x69, 0x0e, 0x9c, 0xb9, 0xf0, 0xa3, 0x91, 351 0x3f, 0x62, 0x9b, 0x54, 0x6e, 0x2b, 0xa4, 0xde, 0x66, 0xbc, 0x33, 0x6f, 0xde, 0x9b, 0xb7, 0x6b, 352 0xd0, 0x2d, 0xe2, 0x91,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56, 0xc4, 0x71, 0x24, 0xf1, 375 0x92, 0xf0, 0x30, 0x31, 0x75, 0xc7, 0x4c, 0x92, 0x57, 0x13, 0x68, 0x14, 0x3c, 0x45, 0x4d, 0x78, 376 0x3c, 0x9d, 0x1f, 0x1b, 0x17, 0xb3, 0xf9, 0xcc, 0xd0, 0x1f, 0x20, 0x1d, 0x76, 0xe2, 0xd4, 0x34, 377 0x46, 0xc6, 0xf8, 0xab, 0xa1, 0x6b, 0x59, 0xc1, 0x99, 0x31, 0x3b, 0xd6, 0x2b, 0x59, 0xfa, 0x71, 378 0x7e, 0xfe, 0x59, 0xaf, 0x2e, 0xea, 0xf1, 0x9f, 0xf0, 0xcd, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 379 0x3b, 0xec, 0xd3, 0x4d, 0x34, 0x05, 0x00, 0x00, 380 }