go.ligato.io/vpp-agent/v3@v3.5.0/examples/kvscheduler/mock_plugins/l2plugin/model/fib.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: model/fib.proto
     6  
     7  package mock_l2
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type FIBEntry_Action int32
    24  
    25  const (
    26  	FIBEntry_FORWARD FIBEntry_Action = 0 // forward the matching frame
    27  	FIBEntry_DROP    FIBEntry_Action = 1 // drop the matching frame
    28  )
    29  
    30  // Enum value maps for FIBEntry_Action.
    31  var (
    32  	FIBEntry_Action_name = map[int32]string{
    33  		0: "FORWARD",
    34  		1: "DROP",
    35  	}
    36  	FIBEntry_Action_value = map[string]int32{
    37  		"FORWARD": 0,
    38  		"DROP":    1,
    39  	}
    40  )
    41  
    42  func (x FIBEntry_Action) Enum() *FIBEntry_Action {
    43  	p := new(FIBEntry_Action)
    44  	*p = x
    45  	return p
    46  }
    47  
    48  func (x FIBEntry_Action) String() string {
    49  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    50  }
    51  
    52  func (FIBEntry_Action) Descriptor() protoreflect.EnumDescriptor {
    53  	return file_model_fib_proto_enumTypes[0].Descriptor()
    54  }
    55  
    56  func (FIBEntry_Action) Type() protoreflect.EnumType {
    57  	return &file_model_fib_proto_enumTypes[0]
    58  }
    59  
    60  func (x FIBEntry_Action) Number() protoreflect.EnumNumber {
    61  	return protoreflect.EnumNumber(x)
    62  }
    63  
    64  // Deprecated: Use FIBEntry_Action.Descriptor instead.
    65  func (FIBEntry_Action) EnumDescriptor() ([]byte, []int) {
    66  	return file_model_fib_proto_rawDescGZIP(), []int{0, 0}
    67  }
    68  
    69  type FIBEntry struct {
    70  	state         protoimpl.MessageState
    71  	sizeCache     protoimpl.SizeCache
    72  	unknownFields protoimpl.UnknownFields
    73  
    74  	PhysAddress       string          `protobuf:"bytes,1,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`                   // unique destination MAC address
    75  	BridgeDomain      string          `protobuf:"bytes,2,opt,name=bridge_domain,json=bridgeDomain,proto3" json:"bridge_domain,omitempty"`                // name of bridge domain this FIB table entry belongs to
    76  	Action            FIBEntry_Action `protobuf:"varint,3,opt,name=action,proto3,enum=mock.l2.FIBEntry_Action" json:"action,omitempty"`                  // action to tke on matching frames
    77  	OutgoingInterface string          `protobuf:"bytes,4,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"` // outgoing interface for matching frames
    78  }
    79  
    80  func (x *FIBEntry) Reset() {
    81  	*x = FIBEntry{}
    82  	if protoimpl.UnsafeEnabled {
    83  		mi := &file_model_fib_proto_msgTypes[0]
    84  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    85  		ms.StoreMessageInfo(mi)
    86  	}
    87  }
    88  
    89  func (x *FIBEntry) String() string {
    90  	return protoimpl.X.MessageStringOf(x)
    91  }
    92  
    93  func (*FIBEntry) ProtoMessage() {}
    94  
    95  func (x *FIBEntry) ProtoReflect() protoreflect.Message {
    96  	mi := &file_model_fib_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 FIBEntry.ProtoReflect.Descriptor instead.
   108  func (*FIBEntry) Descriptor() ([]byte, []int) {
   109  	return file_model_fib_proto_rawDescGZIP(), []int{0}
   110  }
   111  
   112  func (x *FIBEntry) GetPhysAddress() string {
   113  	if x != nil {
   114  		return x.PhysAddress
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *FIBEntry) GetBridgeDomain() string {
   120  	if x != nil {
   121  		return x.BridgeDomain
   122  	}
   123  	return ""
   124  }
   125  
   126  func (x *FIBEntry) GetAction() FIBEntry_Action {
   127  	if x != nil {
   128  		return x.Action
   129  	}
   130  	return FIBEntry_FORWARD
   131  }
   132  
   133  func (x *FIBEntry) GetOutgoingInterface() string {
   134  	if x != nil {
   135  		return x.OutgoingInterface
   136  	}
   137  	return ""
   138  }
   139  
   140  var File_model_fib_proto protoreflect.FileDescriptor
   141  
   142  var file_model_fib_proto_rawDesc = []byte{
   143  	0x0a, 0x0f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x66, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   144  	0x6f, 0x12, 0x07, 0x6d, 0x6f, 0x63, 0x6b, 0x2e, 0x6c, 0x32, 0x22, 0xd4, 0x01, 0x0a, 0x08, 0x46,
   145  	0x49, 0x42, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79, 0x73, 0x5f,
   146  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70,
   147  	0x68, 0x79, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x72,
   148  	0x69, 0x64, 0x67, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
   149  	0x09, 0x52, 0x0c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
   150  	0x30, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
   151  	0x18, 0x2e, 0x6d, 0x6f, 0x63, 0x6b, 0x2e, 0x6c, 0x32, 0x2e, 0x46, 0x49, 0x42, 0x45, 0x6e, 0x74,
   152  	0x72, 0x79, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f,
   153  	0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e,
   154  	0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f,
   155  	0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
   156  	0x22, 0x1f, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4f,
   157  	0x52, 0x57, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x52, 0x4f, 0x50, 0x10,
   158  	0x01, 0x42, 0x54, 0x5a, 0x52, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69,
   159  	0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x65,
   160  	0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
   161  	0x6c, 0x65, 0x72, 0x2f, 0x6d, 0x6f, 0x63, 0x6b, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73,
   162  	0x2f, 0x69, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x3b,
   163  	0x6d, 0x6f, 0x63, 0x6b, 0x5f, 0x6c, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   164  }
   165  
   166  var (
   167  	file_model_fib_proto_rawDescOnce sync.Once
   168  	file_model_fib_proto_rawDescData = file_model_fib_proto_rawDesc
   169  )
   170  
   171  func file_model_fib_proto_rawDescGZIP() []byte {
   172  	file_model_fib_proto_rawDescOnce.Do(func() {
   173  		file_model_fib_proto_rawDescData = protoimpl.X.CompressGZIP(file_model_fib_proto_rawDescData)
   174  	})
   175  	return file_model_fib_proto_rawDescData
   176  }
   177  
   178  var file_model_fib_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   179  var file_model_fib_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   180  var file_model_fib_proto_goTypes = []interface{}{
   181  	(FIBEntry_Action)(0), // 0: mock.l2.FIBEntry.Action
   182  	(*FIBEntry)(nil),     // 1: mock.l2.FIBEntry
   183  }
   184  var file_model_fib_proto_depIdxs = []int32{
   185  	0, // 0: mock.l2.FIBEntry.action:type_name -> mock.l2.FIBEntry.Action
   186  	1, // [1:1] is the sub-list for method output_type
   187  	1, // [1:1] is the sub-list for method input_type
   188  	1, // [1:1] is the sub-list for extension type_name
   189  	1, // [1:1] is the sub-list for extension extendee
   190  	0, // [0:1] is the sub-list for field type_name
   191  }
   192  
   193  func init() { file_model_fib_proto_init() }
   194  func file_model_fib_proto_init() {
   195  	if File_model_fib_proto != nil {
   196  		return
   197  	}
   198  	if !protoimpl.UnsafeEnabled {
   199  		file_model_fib_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   200  			switch v := v.(*FIBEntry); i {
   201  			case 0:
   202  				return &v.state
   203  			case 1:
   204  				return &v.sizeCache
   205  			case 2:
   206  				return &v.unknownFields
   207  			default:
   208  				return nil
   209  			}
   210  		}
   211  	}
   212  	type x struct{}
   213  	out := protoimpl.TypeBuilder{
   214  		File: protoimpl.DescBuilder{
   215  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   216  			RawDescriptor: file_model_fib_proto_rawDesc,
   217  			NumEnums:      1,
   218  			NumMessages:   1,
   219  			NumExtensions: 0,
   220  			NumServices:   0,
   221  		},
   222  		GoTypes:           file_model_fib_proto_goTypes,
   223  		DependencyIndexes: file_model_fib_proto_depIdxs,
   224  		EnumInfos:         file_model_fib_proto_enumTypes,
   225  		MessageInfos:      file_model_fib_proto_msgTypes,
   226  	}.Build()
   227  	File_model_fib_proto = out.File
   228  	file_model_fib_proto_rawDesc = nil
   229  	file_model_fib_proto_goTypes = nil
   230  	file_model_fib_proto_depIdxs = nil
   231  }