go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/l3/l3xc.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/vpp/l3/l3xc.proto
     6  
     7  package vpp_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 L3XConnect_Protocol int32
    25  
    26  const (
    27  	L3XConnect_IPV4 L3XConnect_Protocol = 0
    28  	L3XConnect_IPV6 L3XConnect_Protocol = 1
    29  )
    30  
    31  // Enum value maps for L3XConnect_Protocol.
    32  var (
    33  	L3XConnect_Protocol_name = map[int32]string{
    34  		0: "IPV4",
    35  		1: "IPV6",
    36  	}
    37  	L3XConnect_Protocol_value = map[string]int32{
    38  		"IPV4": 0,
    39  		"IPV6": 1,
    40  	}
    41  )
    42  
    43  func (x L3XConnect_Protocol) Enum() *L3XConnect_Protocol {
    44  	p := new(L3XConnect_Protocol)
    45  	*p = x
    46  	return p
    47  }
    48  
    49  func (x L3XConnect_Protocol) String() string {
    50  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    51  }
    52  
    53  func (L3XConnect_Protocol) Descriptor() protoreflect.EnumDescriptor {
    54  	return file_ligato_vpp_l3_l3xc_proto_enumTypes[0].Descriptor()
    55  }
    56  
    57  func (L3XConnect_Protocol) Type() protoreflect.EnumType {
    58  	return &file_ligato_vpp_l3_l3xc_proto_enumTypes[0]
    59  }
    60  
    61  func (x L3XConnect_Protocol) Number() protoreflect.EnumNumber {
    62  	return protoreflect.EnumNumber(x)
    63  }
    64  
    65  // Deprecated: Use L3XConnect_Protocol.Descriptor instead.
    66  func (L3XConnect_Protocol) EnumDescriptor() ([]byte, []int) {
    67  	return file_ligato_vpp_l3_l3xc_proto_rawDescGZIP(), []int{0, 0}
    68  }
    69  
    70  type L3XConnect struct {
    71  	state         protoimpl.MessageState
    72  	sizeCache     protoimpl.SizeCache
    73  	unknownFields protoimpl.UnknownFields
    74  
    75  	Interface string              `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
    76  	Protocol  L3XConnect_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.l3.L3XConnect_Protocol" json:"protocol,omitempty"`
    77  	Paths     []*L3XConnect_Path  `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"`
    78  }
    79  
    80  func (x *L3XConnect) Reset() {
    81  	*x = L3XConnect{}
    82  	if protoimpl.UnsafeEnabled {
    83  		mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[0]
    84  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    85  		ms.StoreMessageInfo(mi)
    86  	}
    87  }
    88  
    89  func (x *L3XConnect) String() string {
    90  	return protoimpl.X.MessageStringOf(x)
    91  }
    92  
    93  func (*L3XConnect) ProtoMessage() {}
    94  
    95  func (x *L3XConnect) ProtoReflect() protoreflect.Message {
    96  	mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[0]
    97  	if protoimpl.UnsafeEnabled && x != nil {
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		if ms.LoadMessageInfo() == nil {
   100  			ms.StoreMessageInfo(mi)
   101  		}
   102  		return ms
   103  	}
   104  	return mi.MessageOf(x)
   105  }
   106  
   107  // Deprecated: Use L3XConnect.ProtoReflect.Descriptor instead.
   108  func (*L3XConnect) Descriptor() ([]byte, []int) {
   109  	return file_ligato_vpp_l3_l3xc_proto_rawDescGZIP(), []int{0}
   110  }
   111  
   112  func (x *L3XConnect) GetInterface() string {
   113  	if x != nil {
   114  		return x.Interface
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *L3XConnect) GetProtocol() L3XConnect_Protocol {
   120  	if x != nil {
   121  		return x.Protocol
   122  	}
   123  	return L3XConnect_IPV4
   124  }
   125  
   126  func (x *L3XConnect) GetPaths() []*L3XConnect_Path {
   127  	if x != nil {
   128  		return x.Paths
   129  	}
   130  	return nil
   131  }
   132  
   133  type L3XConnect_Path struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	OutgoingInterface string `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
   139  	NextHopAddr       string `protobuf:"bytes,2,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"`
   140  	Weight            uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
   141  	Preference        uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"`
   142  }
   143  
   144  func (x *L3XConnect_Path) Reset() {
   145  	*x = L3XConnect_Path{}
   146  	if protoimpl.UnsafeEnabled {
   147  		mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[1]
   148  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   149  		ms.StoreMessageInfo(mi)
   150  	}
   151  }
   152  
   153  func (x *L3XConnect_Path) String() string {
   154  	return protoimpl.X.MessageStringOf(x)
   155  }
   156  
   157  func (*L3XConnect_Path) ProtoMessage() {}
   158  
   159  func (x *L3XConnect_Path) ProtoReflect() protoreflect.Message {
   160  	mi := &file_ligato_vpp_l3_l3xc_proto_msgTypes[1]
   161  	if protoimpl.UnsafeEnabled && x != nil {
   162  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   163  		if ms.LoadMessageInfo() == nil {
   164  			ms.StoreMessageInfo(mi)
   165  		}
   166  		return ms
   167  	}
   168  	return mi.MessageOf(x)
   169  }
   170  
   171  // Deprecated: Use L3XConnect_Path.ProtoReflect.Descriptor instead.
   172  func (*L3XConnect_Path) Descriptor() ([]byte, []int) {
   173  	return file_ligato_vpp_l3_l3xc_proto_rawDescGZIP(), []int{0, 0}
   174  }
   175  
   176  func (x *L3XConnect_Path) GetOutgoingInterface() string {
   177  	if x != nil {
   178  		return x.OutgoingInterface
   179  	}
   180  	return ""
   181  }
   182  
   183  func (x *L3XConnect_Path) GetNextHopAddr() string {
   184  	if x != nil {
   185  		return x.NextHopAddr
   186  	}
   187  	return ""
   188  }
   189  
   190  func (x *L3XConnect_Path) GetWeight() uint32 {
   191  	if x != nil {
   192  		return x.Weight
   193  	}
   194  	return 0
   195  }
   196  
   197  func (x *L3XConnect_Path) GetPreference() uint32 {
   198  	if x != nil {
   199  		return x.Preference
   200  	}
   201  	return 0
   202  }
   203  
   204  var File_ligato_vpp_l3_l3xc_proto protoreflect.FileDescriptor
   205  
   206  var file_ligato_vpp_l3_l3xc_proto_rawDesc = []byte{
   207  	0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f,
   208  	0x6c, 0x33, 0x78, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61,
   209  	0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74,
   210  	0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
   211  	0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x02, 0x0a, 0x0a, 0x4c, 0x33, 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
   212  	0x63, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18,
   213  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
   214  	0x12, 0x3e, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01,
   215  	0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e,
   216  	0x6c, 0x33, 0x2e, 0x4c, 0x33, 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72,
   217  	0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
   218  	0x12, 0x34, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
   219  	0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e,
   220  	0x4c, 0x33, 0x58, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52,
   221  	0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x1a, 0x98, 0x01, 0x0a, 0x04, 0x50, 0x61, 0x74, 0x68, 0x12,
   222  	0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65,
   223  	0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74,
   224  	0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x29,
   225  	0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18,
   226  	0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x0b, 0x6e, 0x65,
   227  	0x78, 0x74, 0x48, 0x6f, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69,
   228  	0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68,
   229  	0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18,
   230  	0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
   231  	0x65, 0x22, 0x1e, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a,
   232  	0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10,
   233  	0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69,
   234  	0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70,
   235  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f,
   236  	0x6c, 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   237  	0x33,
   238  }
   239  
   240  var (
   241  	file_ligato_vpp_l3_l3xc_proto_rawDescOnce sync.Once
   242  	file_ligato_vpp_l3_l3xc_proto_rawDescData = file_ligato_vpp_l3_l3xc_proto_rawDesc
   243  )
   244  
   245  func file_ligato_vpp_l3_l3xc_proto_rawDescGZIP() []byte {
   246  	file_ligato_vpp_l3_l3xc_proto_rawDescOnce.Do(func() {
   247  		file_ligato_vpp_l3_l3xc_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_l3xc_proto_rawDescData)
   248  	})
   249  	return file_ligato_vpp_l3_l3xc_proto_rawDescData
   250  }
   251  
   252  var file_ligato_vpp_l3_l3xc_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   253  var file_ligato_vpp_l3_l3xc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   254  var file_ligato_vpp_l3_l3xc_proto_goTypes = []interface{}{
   255  	(L3XConnect_Protocol)(0), // 0: ligato.vpp.l3.L3XConnect.Protocol
   256  	(*L3XConnect)(nil),       // 1: ligato.vpp.l3.L3XConnect
   257  	(*L3XConnect_Path)(nil),  // 2: ligato.vpp.l3.L3XConnect.Path
   258  }
   259  var file_ligato_vpp_l3_l3xc_proto_depIdxs = []int32{
   260  	0, // 0: ligato.vpp.l3.L3XConnect.protocol:type_name -> ligato.vpp.l3.L3XConnect.Protocol
   261  	2, // 1: ligato.vpp.l3.L3XConnect.paths:type_name -> ligato.vpp.l3.L3XConnect.Path
   262  	2, // [2:2] is the sub-list for method output_type
   263  	2, // [2:2] is the sub-list for method input_type
   264  	2, // [2:2] is the sub-list for extension type_name
   265  	2, // [2:2] is the sub-list for extension extendee
   266  	0, // [0:2] is the sub-list for field type_name
   267  }
   268  
   269  func init() { file_ligato_vpp_l3_l3xc_proto_init() }
   270  func file_ligato_vpp_l3_l3xc_proto_init() {
   271  	if File_ligato_vpp_l3_l3xc_proto != nil {
   272  		return
   273  	}
   274  	if !protoimpl.UnsafeEnabled {
   275  		file_ligato_vpp_l3_l3xc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   276  			switch v := v.(*L3XConnect); i {
   277  			case 0:
   278  				return &v.state
   279  			case 1:
   280  				return &v.sizeCache
   281  			case 2:
   282  				return &v.unknownFields
   283  			default:
   284  				return nil
   285  			}
   286  		}
   287  		file_ligato_vpp_l3_l3xc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   288  			switch v := v.(*L3XConnect_Path); i {
   289  			case 0:
   290  				return &v.state
   291  			case 1:
   292  				return &v.sizeCache
   293  			case 2:
   294  				return &v.unknownFields
   295  			default:
   296  				return nil
   297  			}
   298  		}
   299  	}
   300  	type x struct{}
   301  	out := protoimpl.TypeBuilder{
   302  		File: protoimpl.DescBuilder{
   303  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   304  			RawDescriptor: file_ligato_vpp_l3_l3xc_proto_rawDesc,
   305  			NumEnums:      1,
   306  			NumMessages:   2,
   307  			NumExtensions: 0,
   308  			NumServices:   0,
   309  		},
   310  		GoTypes:           file_ligato_vpp_l3_l3xc_proto_goTypes,
   311  		DependencyIndexes: file_ligato_vpp_l3_l3xc_proto_depIdxs,
   312  		EnumInfos:         file_ligato_vpp_l3_l3xc_proto_enumTypes,
   313  		MessageInfos:      file_ligato_vpp_l3_l3xc_proto_msgTypes,
   314  	}.Build()
   315  	File_ligato_vpp_l3_l3xc_proto = out.File
   316  	file_ligato_vpp_l3_l3xc_proto_rawDesc = nil
   317  	file_ligato_vpp_l3_l3xc_proto_goTypes = nil
   318  	file_ligato_vpp_l3_l3xc_proto_depIdxs = nil
   319  }