go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/linux/l3/route.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/linux/l3/route.proto 6 7 package linux_l3 8 9 import ( 10 _ "go.ligato.io/vpp-agent/v3/proto/ligato" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type Route_Scope int32 25 26 const ( 27 Route_UNDEFINED Route_Scope = 0 28 Route_GLOBAL Route_Scope = 1 29 Route_SITE Route_Scope = 2 30 Route_LINK Route_Scope = 3 31 Route_HOST Route_Scope = 4 32 ) 33 34 // Enum value maps for Route_Scope. 35 var ( 36 Route_Scope_name = map[int32]string{ 37 0: "UNDEFINED", 38 1: "GLOBAL", 39 2: "SITE", 40 3: "LINK", 41 4: "HOST", 42 } 43 Route_Scope_value = map[string]int32{ 44 "UNDEFINED": 0, 45 "GLOBAL": 1, 46 "SITE": 2, 47 "LINK": 3, 48 "HOST": 4, 49 } 50 ) 51 52 func (x Route_Scope) Enum() *Route_Scope { 53 p := new(Route_Scope) 54 *p = x 55 return p 56 } 57 58 func (x Route_Scope) String() string { 59 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 60 } 61 62 func (Route_Scope) Descriptor() protoreflect.EnumDescriptor { 63 return file_ligato_linux_l3_route_proto_enumTypes[0].Descriptor() 64 } 65 66 func (Route_Scope) Type() protoreflect.EnumType { 67 return &file_ligato_linux_l3_route_proto_enumTypes[0] 68 } 69 70 func (x Route_Scope) Number() protoreflect.EnumNumber { 71 return protoreflect.EnumNumber(x) 72 } 73 74 // Deprecated: Use Route_Scope.Descriptor instead. 75 func (Route_Scope) EnumDescriptor() ([]byte, []int) { 76 return file_ligato_linux_l3_route_proto_rawDescGZIP(), []int{0, 0} 77 } 78 79 type Route struct { 80 state protoimpl.MessageState 81 sizeCache protoimpl.SizeCache 82 unknownFields protoimpl.UnknownFields 83 84 // Outgoing interface logical name (mandatory). 85 OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` 86 // The scope of the area where the link is valid. 87 Scope Route_Scope `protobuf:"varint,2,opt,name=scope,proto3,enum=ligato.linux.l3.Route_Scope" json:"scope,omitempty"` 88 // Destination network address in the format <address>/<prefix> (mandatory) 89 // Address can be also allocated via netalloc plugin and referenced here, 90 // see: api/models/netalloc/netalloc.proto 91 DstNetwork string `protobuf:"bytes,3,opt,name=dst_network,json=dstNetwork,proto3" json:"dst_network,omitempty"` 92 // Gateway IP address (without mask, optional). 93 // Address can be also allocated via netalloc plugin and referenced here, 94 // see: api/models/netalloc/netalloc.proto 95 GwAddr string `protobuf:"bytes,4,opt,name=gw_addr,json=gwAddr,proto3" json:"gw_addr,omitempty"` 96 // routing metric (weight) 97 Metric uint32 `protobuf:"varint,5,opt,name=metric,proto3" json:"metric,omitempty"` 98 } 99 100 func (x *Route) Reset() { 101 *x = Route{} 102 if protoimpl.UnsafeEnabled { 103 mi := &file_ligato_linux_l3_route_proto_msgTypes[0] 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 ms.StoreMessageInfo(mi) 106 } 107 } 108 109 func (x *Route) String() string { 110 return protoimpl.X.MessageStringOf(x) 111 } 112 113 func (*Route) ProtoMessage() {} 114 115 func (x *Route) ProtoReflect() protoreflect.Message { 116 mi := &file_ligato_linux_l3_route_proto_msgTypes[0] 117 if protoimpl.UnsafeEnabled && x != nil { 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 if ms.LoadMessageInfo() == nil { 120 ms.StoreMessageInfo(mi) 121 } 122 return ms 123 } 124 return mi.MessageOf(x) 125 } 126 127 // Deprecated: Use Route.ProtoReflect.Descriptor instead. 128 func (*Route) Descriptor() ([]byte, []int) { 129 return file_ligato_linux_l3_route_proto_rawDescGZIP(), []int{0} 130 } 131 132 func (x *Route) GetOutgoingInterface() string { 133 if x != nil { 134 return x.OutgoingInterface 135 } 136 return "" 137 } 138 139 func (x *Route) GetScope() Route_Scope { 140 if x != nil { 141 return x.Scope 142 } 143 return Route_UNDEFINED 144 } 145 146 func (x *Route) GetDstNetwork() string { 147 if x != nil { 148 return x.DstNetwork 149 } 150 return "" 151 } 152 153 func (x *Route) GetGwAddr() string { 154 if x != nil { 155 return x.GwAddr 156 } 157 return "" 158 } 159 160 func (x *Route) GetMetric() uint32 { 161 if x != nil { 162 return x.Metric 163 } 164 return 0 165 } 166 167 var File_ligato_linux_l3_route_proto protoreflect.FileDescriptor 168 169 var file_ligato_linux_l3_route_proto_rawDesc = []byte{ 170 0x0a, 0x1b, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, 171 0x33, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6c, 172 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6c, 0x33, 0x1a, 0x18, 173 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 174 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x02, 0x0a, 0x05, 0x52, 0x6f, 0x75, 175 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 176 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 177 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 178 0x65, 0x12, 0x32, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 179 0x32, 0x1c, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 180 0x6c, 0x33, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 181 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0b, 0x64, 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 182 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 0x02, 0x08, 183 0x04, 0x52, 0x0a, 0x64, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1e, 0x0a, 184 0x07, 0x67, 0x77, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 185 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x06, 0x67, 0x77, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 186 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 187 0x65, 0x74, 0x72, 0x69, 0x63, 0x22, 0x40, 0x0a, 0x05, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x0d, 188 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 189 0x06, 0x47, 0x4c, 0x4f, 0x42, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x49, 0x54, 190 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x4e, 0x4b, 0x10, 0x03, 0x12, 0x08, 0x0a, 191 0x04, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x04, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 192 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 193 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 194 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6c, 0x33, 0x3b, 0x6c, 0x69, 0x6e, 0x75, 0x78, 195 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 196 } 197 198 var ( 199 file_ligato_linux_l3_route_proto_rawDescOnce sync.Once 200 file_ligato_linux_l3_route_proto_rawDescData = file_ligato_linux_l3_route_proto_rawDesc 201 ) 202 203 func file_ligato_linux_l3_route_proto_rawDescGZIP() []byte { 204 file_ligato_linux_l3_route_proto_rawDescOnce.Do(func() { 205 file_ligato_linux_l3_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_l3_route_proto_rawDescData) 206 }) 207 return file_ligato_linux_l3_route_proto_rawDescData 208 } 209 210 var file_ligato_linux_l3_route_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 211 var file_ligato_linux_l3_route_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 212 var file_ligato_linux_l3_route_proto_goTypes = []interface{}{ 213 (Route_Scope)(0), // 0: ligato.linux.l3.Route.Scope 214 (*Route)(nil), // 1: ligato.linux.l3.Route 215 } 216 var file_ligato_linux_l3_route_proto_depIdxs = []int32{ 217 0, // 0: ligato.linux.l3.Route.scope:type_name -> ligato.linux.l3.Route.Scope 218 1, // [1:1] is the sub-list for method output_type 219 1, // [1:1] is the sub-list for method input_type 220 1, // [1:1] is the sub-list for extension type_name 221 1, // [1:1] is the sub-list for extension extendee 222 0, // [0:1] is the sub-list for field type_name 223 } 224 225 func init() { file_ligato_linux_l3_route_proto_init() } 226 func file_ligato_linux_l3_route_proto_init() { 227 if File_ligato_linux_l3_route_proto != nil { 228 return 229 } 230 if !protoimpl.UnsafeEnabled { 231 file_ligato_linux_l3_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 232 switch v := v.(*Route); i { 233 case 0: 234 return &v.state 235 case 1: 236 return &v.sizeCache 237 case 2: 238 return &v.unknownFields 239 default: 240 return nil 241 } 242 } 243 } 244 type x struct{} 245 out := protoimpl.TypeBuilder{ 246 File: protoimpl.DescBuilder{ 247 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 248 RawDescriptor: file_ligato_linux_l3_route_proto_rawDesc, 249 NumEnums: 1, 250 NumMessages: 1, 251 NumExtensions: 0, 252 NumServices: 0, 253 }, 254 GoTypes: file_ligato_linux_l3_route_proto_goTypes, 255 DependencyIndexes: file_ligato_linux_l3_route_proto_depIdxs, 256 EnumInfos: file_ligato_linux_l3_route_proto_enumTypes, 257 MessageInfos: file_ligato_linux_l3_route_proto_msgTypes, 258 }.Build() 259 File_ligato_linux_l3_route_proto = out.File 260 file_ligato_linux_l3_route_proto_rawDesc = nil 261 file_ligato_linux_l3_route_proto_goTypes = nil 262 file_ligato_linux_l3_route_proto_depIdxs = nil 263 }